public function editableElementAugmentation(JoinPointInterface $joinPoint)
    {
        if (!$this->session->isStarted() || $this->session->getData('__neosLegacyUiEnabled__')) {
            return $joinPoint->getAdviceChain()->proceed($joinPoint);
        }

        $property = $joinPoint->getMethodArgument('property');
        $node = $joinPoint->getMethodArgument('node');
        $content = $joinPoint->getMethodArgument('content');

        /** @var ContentContext $contentContext */
        $contentContext = $node->getContext();
        if (!$contentContext->isInBackend()) {
            return $content;
        }

        $content = $joinPoint->getAdviceChain()->proceed($joinPoint);

        $attributes = [
            'data-__neos-property' => $property,
            'data-__neos-editable-node-contextpath' => $node->getContextPath()
        ];

        return $this->htmlAugmenter->addAttributes($content, $attributes, 'span');
    }
public function editableElementAugmentation(JoinPointInterface $joinPoint)
    {
        if (!$this->session->isStarted() || $this->session->getData('__neosLegacyUiEnabled__')) {
            return $joinPoint->getAdviceChain()->proceed($joinPoint);
        }

        $property = $joinPoint->getMethodArgument('property');
        $node = $joinPoint->getMethodArgument('node');
        $content = $joinPoint->getMethodArgument('content');

        /** @var ContentContext $contentContext */
        $contentContext = $node->getContext();
        if (!$contentContext->isInBackend()) {
            return $content;
        }

        $content = $joinPoint->getAdviceChain()->proceed($joinPoint);

        $attributes = [
            'data-__neos-property' => $property,
            'data-__neos-editable-node-contextpath' => $node->getContextPath()
        ];

        return $this->htmlAugmenter->addAttributes($content, $attributes, 'span');
    }
public function editableElementAugmentation ( JoinPointInterface $ joinPoint ) { if ( ! $ this -> session -> isStarted ( ) || $ this -> session -> getData ( '__neosLegacyUiEnabled__' ) ) { return $ joinPoint -> getAdviceChain ( ) -> proceed ( $ joinPoint ) ; } $ property = $ joinPoint -> getMethodArgument ( 'property' ) ; $ node = $ joinPoint -> getMethodArgument ( 'node' ) ; $ content = $ joinPoint -> getMethodArgument ( 'content' ) ; /** @var ContentContext $contentContext */ $ contentContext = $ node -> getContext ( ) ; if ( ! $ contentContext -> isInBackend ( ) ) { return $ content ; } $ content = $ joinPoint -> getAdviceChain ( ) -> proceed ( $ joinPoint ) ; $ attributes = [ 'data-__neos-property' => $ property , 'data-__neos-editable-node-contextpath' => $ node -> getContextPath ( ) ] ; return $ this -> htmlAugmenter -> addAttributes ( $ content , $ attributes , 'span' ) ; }
Hooks into the editable viewhelper to render those attributes needed for the package's inline editing

@Flow\Around("method(Neos\Neos\Service\ContentElementEditableService->wrapContentProperty())")
@param JoinPointInterface $joinPoint the join point
@return mixed
Hooks into the editable viewhelper to render those attributes needed for the package s inline editing