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

applyField() приватный Метод

Adds a new field to the configuration array.
private applyField ( array &$config, array $action, boolean $skipLegends = false )
$config array
$action array
$skipLegends boolean
    private function applyField(array &$config, array $action, $skipLegends = false)
    {
        if (self::POSITION_PREPEND === $action['position'] || self::POSITION_APPEND === $action['position']) {
            $this->applyFieldToLegend($config, $action, $skipLegends);
        } else {
            $this->applyFieldToField($config, $action, $skipLegends);
        }
    }