Contao\CoreBundle\DataContainer\PaletteManipulator::applyToPalette PHP Метод

applyToPalette() публичный Метод

Applies the changes to a palette.
public applyToPalette ( string $name, string $table ) : static
$name string
$table string
Результат static
    public function applyToPalette($name, $table)
    {
        $palettes =& $GLOBALS['TL_DCA'][$table]['palettes'];
        if (!isset($palettes[$name])) {
            throw new PaletteNotFoundException(sprintf('Palette "%s" not found in table "%s"', $name, $table));
        }
        $palettes[$name] = $this->applyToString($palettes[$name]);
        return $this;
    }