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

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

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