src/Contao/Dca/Builder/Legacy/ExtendedLegacyDcaDataDefinitionBuilder.php
protected function parsePalettes(ContainerInterface $container)
    {
        $palettesDca = $this->getFromDca('palettes');

        // Skip while there is no extended palette definition.
        if (!\is_callable($palettesDca)) {
            return;
        }

        if ($container->hasDefinition(PalettesDefinitionInterface::NAME)) {
            $palettesDefinition = $container->getDefinition(PalettesDefinitionInterface::NAME);
        } else {
            $palettesDefinition = new DefaultPalettesDefinition();
            $container->setDefinition(PalettesDefinitionInterface::NAME, $palettesDefinition);
        }

        $palettesDca($palettesDefinition, $container);
    }
protected function parsePalettes(ContainerInterface $container)
    {
        $palettesDca = $this->getFromDca('palettes');

        // Skip while there is no extended palette definition.
        if (!\is_callable($palettesDca)) {
            return;
        }

        if ($container->hasDefinition(PalettesDefinitionInterface::NAME)) {
            $palettesDefinition = $container->getDefinition(PalettesDefinitionInterface::NAME);
        } else {
            $palettesDefinition = new DefaultPalettesDefinition();
            $container->setDefinition(PalettesDefinitionInterface::NAME, $palettesDefinition);
        }

        $palettesDca($palettesDefinition, $container);
    }
protected function parsePalettes ( ContainerInterface $ container ) { $ palettesDca = $ this -> getFromDca ( 'palettes' ) ; // Skip while there is no extended palette definition. if ( ! \ is_callable ( $ palettesDca ) ) { return ; } if ( $ container -> hasDefinition ( PalettesDefinitionInterface :: NAME ) ) { $ palettesDefinition = $ container -> getDefinition ( PalettesDefinitionInterface :: NAME ) ; } else { $ palettesDefinition = new DefaultPalettesDefinition ( ) ; $ container -> setDefinition ( PalettesDefinitionInterface :: NAME , $ palettesDefinition ) ; } $ palettesDca ( $ palettesDefinition , $ container ) ; }
Parse the palette information.

@param ContainerInterface $container The container where the data shall be stored.

@return void
Parse the palette information .