PHP Class Neos\Neos\ViewHelpers\ContentElement\WrapViewHelper

Note that using this view helper is usually not necessary as Neos will automatically wrap editables of content elements. By explicitly wrapping template parts with node meta data that is required for the backend to show properties in the inspector, this ViewHelper enables usage of the contentElement.editable ViewHelper outside of content element templates. This is useful if you want to make properties of a custom document node inline-editable. = Examples =
{neos:contentElement.editable(property: 'someProperty')}
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство Type Description
$contentElementWrappingService Neos\Neos\Service\ContentElementWrappingService
$escapeOutput boolean

Méthodes publiques

Méthode Description
render ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string In live workspace this just renders a the content.

Method Details

render() public méthode

For logged in users with access to the Backend this also adds the attributes for the RTE to work.
public render ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface The node of the content element. Optional, will be resolved from the TypoScript context by default.
Résultat string The rendered property with a wrapping tag. In the user workspace this adds some required attributes for the RTE to work

Property Details

$contentElementWrappingService protected_oe property

protected ContentElementWrappingService,Neos\Neos\Service $contentElementWrappingService
Résultat Neos\Neos\Service\ContentElementWrappingService

$escapeOutput protected_oe property

protected bool $escapeOutput
Résultat boolean