Neos\Neos\Service\Controller\DataSourceController::indexAction PHP Метод

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

public indexAction ( string $dataSourceIdentifier, Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string
$dataSourceIdentifier string
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат string
    public function indexAction($dataSourceIdentifier, NodeInterface $node = null)
    {
        $dataSources = static::getDataSources($this->objectManager);
        if (!isset($dataSources[$dataSourceIdentifier])) {
            throw new NeosException(sprintf('Data source with identifier "%s" does not exist.', $dataSourceIdentifier), 1414088186);
        }
        /** @var $dataSource DataSourceInterface */
        $dataSource = new $dataSources[$dataSourceIdentifier]();
        if (ObjectAccess::isPropertySettable($dataSource, 'controllerContext')) {
            ObjectAccess::setProperty($dataSource, 'controllerContext', $this->controllerContext);
        }
        $arguments = $this->request->getArguments();
        unset($arguments['dataSourceIdentifier']);
        unset($arguments['node']);
        $values = $dataSource->getData($node, $arguments);
        $this->view->assign('value', $values);
    }
DataSourceController