class WrapViewHelper extends AbstractViewHelper (View source)

A view helper for manually wrapping content editables.

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')}
```

Properties

protected bool $escapeOutput
protected ContentElementWrappingService $contentElementWrappingService

Methods

void
initializeArguments()

Initialize the arguments.

string
render()

In live workspace this just renders a the content.

Details

void initializeArguments()

Initialize the arguments.

Return Value

void

Exceptions

Exception

string render()

In live workspace this just renders a the content.

For logged in users with access to the Backend this also adds the attributes for the RTE to work.

Return Value

string

The rendered property with a wrapping tag. In the user workspace this adds some required attributes for the RTE to work

Exceptions

Exception