Neos.Neos/Classes/ViewHelpers/ContentElement/EditableViewHelper.php
public function render($property, $tag = 'div', NodeInterface $node = null)
    {
        $this->tag->setTagName($tag);
        $this->tag->forceClosingTag(true);
        $content = $this->renderChildren();

        if ($node === null) {
            $node = $this->getNodeFromFusionContext();
        }

        if ($node === null) {
            throw new ViewHelperException('A node is required, but one was not supplied and could not be found in the Fusion context.', 1408521638);
        }

        if ($content === null) {
            if (!$this->templateVariableContainer->exists($property)) {
                throw new ViewHelperException(sprintf('The property "%1$s" was not set as a template variable. If you use this ViewHelper in a partial, make sure to pass the node property "%1$s" as an argument.', $property), 1384507046);
            }
            $content = $this->templateVariableContainer->get($property);
        }
        $this->tag->setContent($content);

        return $this->contentElementEditableService->wrapContentProperty($node, $property, $this->tag->render());
    }
public function render($property, $tag = 'div', NodeInterface $node = null)
    {
        $this->tag->setTagName($tag);
        $this->tag->forceClosingTag(true);
        $content = $this->renderChildren();

        if ($node === null) {
            $node = $this->getNodeFromFusionContext();
        }

        if ($node === null) {
            throw new ViewHelperException('A node is required, but one was not supplied and could not be found in the Fusion context.', 1408521638);
        }

        if ($content === null) {
            if (!$this->templateVariableContainer->exists($property)) {
                throw new ViewHelperException(sprintf('The property "%1$s" was not set as a template variable. If you use this ViewHelper in a partial, make sure to pass the node property "%1$s" as an argument.', $property), 1384507046);
            }
            $content = $this->templateVariableContainer->get($property);
        }
        $this->tag->setContent($content);

        return $this->contentElementEditableService->wrapContentProperty($node, $property, $this->tag->render());
    }
public function render ( $ property , $ tag = 'div' , NodeInterface $ node = null ) { $ this -> tag -> setTagName ( $ tag ) ; $ this -> tag -> forceClosingTag ( true ) ; $ content = $ this -> renderChildren ( ) ; if ( $ node === null ) { $ node = $ this -> getNodeFromFusionContext ( ) ; } if ( $ node === null ) { throw new ViewHelperException ( 'A node is required, but one was not supplied and could not be found in the Fusion context.' , 1408521638 ) ; } if ( $ content === null ) { if ( ! $ this -> templateVariableContainer -> exists ( $ property ) ) { throw new ViewHelperException ( sprintf ( 'The property "%1$s" was not set as a template variable. If you use this ViewHelper in a partial, make sure to pass the node property "%1$s" as an argument.' , $ property ) , 1384507046 ) ; } $ content = $ this -> templateVariableContainer -> get ( $ property ) ; } $ this -> tag -> setContent ( $ content ) ; return $ this -> contentElementEditableService -> wrapContentProperty ( $ node , $ property , $ this -> tag -> render ( ) ) ; }
In live workspace this just renders a tag; for logged in users with access to the Backend this also adds required
attributes for the editing.

@param string $property Name of the property to render. Note: If this tag has child nodes, they overrule this argument!
@param string $tag The name of the tag that should be wrapped around the property. By default this is a <div>
@param NodeInterface $node The node of the content element. Optional, will be resolved from the Fusion context by default.
@return string The rendered property with a wrapping tag. In the user workspace this adds some required attributes for the RTE to work
@throws ViewHelperException
In live workspace this just renders a tag ; for logged in users with access to the Backend this also adds required attributes for the editing .