PHP Class Neos\Neos\Service\ContentElementWrappingService

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$htmlAugmenter HtmlAugmenter
$nodeAuthorizationService Neos\ContentRepository\Service\AuthorizationService
$nodePropertyConverterService Neos\Neos\Service\Mapping\NodePropertyConverterService
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface

Méthodes publiques

Méthode Description
wrapContentObject ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $content, string $typoScriptPath ) : string Wrap the $content identified by $node with the needed markup for the backend.
wrapCurrentDocumentMetadata ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $content, string $typoScriptPath ) : string

Méthodes protégées

Méthode Description
addCssClasses ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node, array $initialClasses = [] ) : array Add required CSS classes to the attributes.
addDocumentMetadata ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array Collects metadata for the Neos backend specifically for document nodes.
addGenericEditingMetadata ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array Collects metadata attributes used to allow editing of the node in the Neos backend.
addNodePropertyAttributes ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array Adds node properties to the given $attributes collection and returns the extended array
collectEditingClassNames ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array Collects CSS class names used for styling editable elements in the Neos backend.
dasherize ( string $value ) : string Converts camelCased strings to lower cased and non-camel-cased strings
hasInlineEditableProperties ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean Checks if the given Node has any properties configured as 'inlineEditable'
isInlineEditable ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean Determine if the Node or one of it's properties is inline editable.
needsMetadata ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $renderCurrentDocumentMetadata ) : boolean
renderNodePropertyAttribute ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : array Renders data attributes needed for the given node property.

Method Details

addCssClasses() protected méthode

Add required CSS classes to the attributes.
protected addCssClasses ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node, array $initialClasses = [] ) : array
$attributes array
$node Neos\ContentRepository\Domain\Model\NodeInterface
$initialClasses array
Résultat array

addDocumentMetadata() protected méthode

Collects metadata for the Neos backend specifically for document nodes.
protected addDocumentMetadata ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array
$attributes array
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat array

addGenericEditingMetadata() protected méthode

Collects metadata attributes used to allow editing of the node in the Neos backend.
protected addGenericEditingMetadata ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array
$attributes array
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat array

addNodePropertyAttributes() protected méthode

Adds node properties to the given $attributes collection and returns the extended array
protected addNodePropertyAttributes ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array
$attributes array
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat array the merged attributes

collectEditingClassNames() protected méthode

Collects CSS class names used for styling editable elements in the Neos backend.
protected collectEditingClassNames ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat array

dasherize() protected méthode

Converts camelCased strings to lower cased and non-camel-cased strings
protected dasherize ( string $value ) : string
$value string
Résultat string

hasInlineEditableProperties() protected méthode

Checks if the given Node has any properties configured as 'inlineEditable'
protected hasInlineEditableProperties ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat boolean

isInlineEditable() protected méthode

$parsedType = TypeHandling::parseType($dataType);
protected isInlineEditable ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat boolean

needsMetadata() protected méthode

protected needsMetadata ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $renderCurrentDocumentMetadata ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
$renderCurrentDocumentMetadata boolean
Résultat boolean

renderNodePropertyAttribute() protected méthode

Renders data attributes needed for the given node property.
protected renderNodePropertyAttribute ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : array
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string
Résultat array

wrapContentObject() public méthode

Wrap the $content identified by $node with the needed markup for the backend.
public wrapContentObject ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $content, string $typoScriptPath ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface
$content string
$typoScriptPath string
Résultat string

wrapCurrentDocumentMetadata() public méthode

public wrapCurrentDocumentMetadata ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $content, string $typoScriptPath ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface
$content string
$typoScriptPath string
Résultat string

Property Details

$htmlAugmenter protected_oe property

protected HtmlAugmenter,Neos\Neos\Service $htmlAugmenter
Résultat HtmlAugmenter

$nodeAuthorizationService protected_oe property

protected AuthorizationService,Neos\ContentRepository\Service $nodeAuthorizationService
Résultat Neos\ContentRepository\Service\AuthorizationService

$nodePropertyConverterService protected_oe property

protected NodePropertyConverterService,Neos\Neos\Service\Mapping $nodePropertyConverterService
Résultat Neos\Neos\Service\Mapping\NodePropertyConverterService

$privilegeManager protected_oe property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Résultat Neos\Flow\Security\Authorization\PrivilegeManagerInterface