PHP 클래스 Neos\Neos\ViewHelpers\ContentElement\EditableViewHelper

The wrapper contains the property name which should be made editable, and is by default a "div" tag. The tag to use can be given as tag argument to the ViewHelper. In live workspace this just renders a tag with the specified $tag-name containing the value of the given $property. For logged in users with access to the Backend this also adds required attributes for the RTE to work. Note: when passing a node you have to make sure a metadata wrapper is used around this that matches the given node (see contentElement.wrap - i.e. the WrapViewHelper).
상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractTagBasedViewHelper, use trait Neos\Fusion\ViewHelpers\TypoScriptContextTrait
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$contentElementEditableService Neos\Neos\Service\ContentElementEditableService
$nodeAuthorizationService Neos\ContentRepository\Service\AuthorizationService
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface

공개 메소드들

메소드 설명
initializeArguments ( ) : void
render ( string $property, string $tag = 'div', Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string 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.

보호된 메소드들

메소드 설명
getNodeFromTypoScriptContext ( ) : Neos\ContentRepository\Domain\Model\NodeInterface

메소드 상세

getNodeFromTypoScriptContext() 보호된 메소드

protected getNodeFromTypoScriptContext ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

initializeArguments() 공개 메소드

public initializeArguments ( ) : void
리턴 void

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.
public render ( string $property, string $tag = 'div', Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string
$property string Name of the property to render. Note: If this tag has child nodes, they overrule this argument!
$tag string The name of the tag that should be wrapped around the property. By default this is a
$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

프로퍼티 상세

$contentElementEditableService 보호되어 있는 프로퍼티

protected ContentElementEditableService,Neos\Neos\Service $contentElementEditableService
리턴 Neos\Neos\Service\ContentElementEditableService

$nodeAuthorizationService 보호되어 있는 프로퍼티

protected AuthorizationService,Neos\ContentRepository\Service $nodeAuthorizationService
리턴 Neos\ContentRepository\Service\AuthorizationService

$privilegeManager 보호되어 있는 프로퍼티

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
리턴 Neos\Flow\Security\Authorization\PrivilegeManagerInterface