Contao\CoreBundle\DataContainer\PaletteManipulator::applyFallback PHP Method

applyFallback() private method

Adds a new legend if possible or appends to the last one.
private applyFallback ( array &$config, array $action, boolean $skipLegends = false )
$config array
$action array
$skipLegends boolean
    private function applyFallback(array &$config, array $action, $skipLegends = false)
    {
        if (is_callable($action['fallback'])) {
            $action['fallback']($config, $action, $skipLegends);
        } else {
            $this->applyFallbackPalette($config, $action);
        }
    }