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
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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