Neos\Neos\Service\VieSchemaBuilder::addProperty PHP Method

addProperty() protected method

Adds a property to the list of known properties
protected addProperty ( string $nodeType, string $propertyName, array $propertyConfiguration ) : void
$nodeType string
$propertyName string
$propertyConfiguration array
return void
    protected function addProperty($nodeType, $propertyName, array $propertyConfiguration)
    {
        if (isset($this->properties[$propertyName])) {
            $this->properties[$propertyName]->domains[] = $nodeType;
        } else {
            $propertyLabel = isset($propertyConfiguration['ui']['label']) ? $propertyConfiguration['ui']['label'] : $propertyName;
            $this->properties[$propertyName] = (object) array('comment' => $propertyLabel, 'comment_plain' => $propertyLabel, 'domains' => array($nodeType), 'id' => $propertyName, 'label' => $propertyName, 'ranges' => array(), 'min' => 0, 'max' => -1);
        }
    }