src/Contao/Dca/Palette/LegacyPalettesParser.php
public function parseSubpalette(
        $subPaletteSelector,
        $childFields,
        array $selectorFieldNames = [],
        array $properties = []
    ) {
        $childFields = \explode(',', $childFields);
        $childFields = \array_map('trim', $childFields);

        $condition = $this->createSubpaletteCondition($subPaletteSelector, $selectorFieldNames);

        foreach ($childFields as $childField) {
            $property = new Property($childField);
            $property->setVisibleCondition(clone $condition);
            $properties[] = $property;
        }

        return $properties;
    }
public function parseSubpalette(
        $subPaletteSelector,
        $childFields,
        array $selectorFieldNames = [],
        array $properties = []
    ) {
        $childFields = \explode(',', $childFields);
        $childFields = \array_map('trim', $childFields);

        $condition = $this->createSubpaletteCondition($subPaletteSelector, $selectorFieldNames);

        foreach ($childFields as $childField) {
            $property = new Property($childField);
            $property->setVisibleCondition(clone $condition);
            $properties[] = $property;
        }

        return $properties;
    }
public function parseSubpalette ( $ subPaletteSelector , $ childFields , array $ selectorFieldNames = [ ] , array $ properties = [ ] ) { $ childFields = \ explode ( ',' , $ childFields ) ; $ childFields = \ array_map ( 'trim' , $ childFields ) ; $ condition = $ this -> createSubpaletteCondition ( $ subPaletteSelector , $ selectorFieldNames ) ; foreach ( $ childFields as $ childField ) { $ property = new Property ( $ childField ) ; $ property -> setVisibleCondition ( clone $ condition ) ; $ properties [ ] = $ property ; } return $ properties ; }
Parse the list of sub palette fields into an array of properties.

@param string $subPaletteSelector The selector in use.
@param string $childFields        List of the properties for the sub palette.
@param array  $selectorFieldNames List of the selector properties [optional].
@param array  $properties         List of the selector visible properties [optional].

@return PropertyInterface[]
Parse the list of sub palette fields into an array of properties .