Neos\Neos\Ui\TypoScript\AppendToCollectionImplementation::evaluate PHP Метод

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

Appends an item to the given collection
public evaluate ( ) : string
Результат string
    public function evaluate()
    {
        $collection = $this->tsValue('collection');
        $key = $this->tsValue('key');
        $item = $this->tsValue('item');
        if ($key) {
            $collection[$key] = $item;
        } else {
            $collection[] = $item;
        }
        return $collection;
    }
AppendToCollectionImplementation