Neos\NodeTypes\Service\DataSource\FormDefinitionDataSource::getData PHP 메소드

getData() 공개 메소드

public getData ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null, array $arguments ) : Neos\Flow\Persistence\QueryResultInterface
$node Neos\ContentRepository\Domain\Model\NodeInterface
$arguments array
리턴 Neos\Flow\Persistence\QueryResultInterface
    public function getData(NodeInterface $node = null, array $arguments)
    {
        $formDefinitions['']['label'] = '';
        $forms = $this->yamlPersistenceManager->listForms();
        foreach ($forms as $form) {
            $formDefinitions[$form['identifier']]['label'] = $form['name'];
        }
        return $formDefinitions;
    }
FormDefinitionDataSource