PHP Класс 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')}
Наследование: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$contentElementWrappingService Neos\Neos\Service\ContentElementWrappingService
$escapeOutput boolean

Открытые методы

Метод Описание
render ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string In live workspace this just renders a the content.

Описание методов

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

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.
Результат string The rendered property with a wrapping tag. In the user workspace this adds some required attributes for the RTE to work

Описание свойств

$contentElementWrappingService защищенное свойство

protected ContentElementWrappingService,Neos\Neos\Service $contentElementWrappingService
Результат Neos\Neos\Service\ContentElementWrappingService

$escapeOutput защищенное свойство

protected bool $escapeOutput
Результат boolean