Neos\Neos\Ui\Aspects\AugmentationAspect::contentElementAugmentation PHP Метод

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

Hooks into standard content element wrapping to render those attributes needed for the package to identify nodes and typoScript paths
public contentElementAugmentation ( TYPO3\FLOW\AOP\JoinPointInterface $joinPoint ) : mixed
$joinPoint TYPO3\FLOW\AOP\JoinPointInterface the join point
Результат mixed
    public function contentElementAugmentation(JoinPointInterface $joinPoint)
    {
        if (!$this->session->isStarted() || !$this->session->getData('__neosEnabled__')) {
            return $joinPoint->getAdviceChain()->proceed($joinPoint);
        }
        $node = $joinPoint->getMethodArgument('node');
        $content = $joinPoint->getMethodArgument('content');
        $typoScriptPath = $joinPoint->getMethodArgument('typoScriptPath');
        $attributes = ['data-__neos-node-contextpath' => $node->getContextPath(), 'data-__neos-typoscript-path' => $typoScriptPath];
        return $this->htmlAugmenter->addAttributes($content, $attributes, 'div');
    }