public function setFallbackRule(array $fallbackRule)
    {
        if (!array_key_exists('order', $fallbackRule)) {
            throw new \InvalidArgumentException('The given fallback rule did not contain an order element.', 1406710671);
        }
        if (!array_key_exists('strict', $fallbackRule)) {
            $fallbackRule['strict'] = false;
        }
        $this->fallbackRule = $fallbackRule;
    }
public function setFallbackRule(array $fallbackRule)
    {
        if (!array_key_exists('order', $fallbackRule)) {
            throw new \InvalidArgumentException('The given fallback rule did not contain an order element.', 1406710671);
        }
        if (!array_key_exists('strict', $fallbackRule)) {
            $fallbackRule['strict'] = false;
        }
        $this->fallbackRule = $fallbackRule;
    }
public function setFallbackRule ( array $ fallbackRule ) { if ( ! array_key_exists ( 'order' , $ fallbackRule ) ) { throw new \ InvalidArgumentException ( 'The given fallback rule did not contain an order element.' , 1406710671 ) ; } if ( ! array_key_exists ( 'strict' , $ fallbackRule ) ) { $ fallbackRule [ 'strict' ] = false ; } $ this -> fallbackRule = $ fallbackRule ; }
Allows to set a fallback order for locale resolving. If not set,
the implicit inheritance of locales will be used. That is, if a
locale of en_UK is requested, matches will be searched for in en_UK
and en before trying the default locale configured in Flow.

If this is given an order of [dk, za, fr_CA] a request for en_UK will
be looked up in en_UK, en, dk, za, fr_CA, fr before trying the default
locale.

If strict flag is given in the array, the above example would instead look
in en_UK, dk, za, fr_CA before trying the default locale. In other words,
the implicit fallback is not applied to the locales in the fallback rule.

Here is an example:
array('strict' => false, 'order' => array('dk', 'za'))

@param array $fallbackRule
Allows to set a fallback order for locale resolving . If not set the implicit inheritance of locales will be used . That is if a locale of en_UK is requested matches will be searched for in en_UK and en before trying the default locale configured in Flow .