ContentElementWrappingService
class ContentElementWrappingService (View source)
The content element wrapping service adds the necessary markup around a content element such that it can be edited using the Content Module of the Neos Backend.
Properties
protected PrivilegeManagerInterface | $privilegeManager | ||
protected AuthorizationService | $nodeAuthorizationService | ||
protected HtmlAugmenter | $htmlAugmenter |
Methods
This is an extensibility point for other packages to add additional attributes to the wrapping tag.
No description
Add required CSS classes to the attributes.
Collects CSS class names used for styling editable elements in the Neos backend.
Determine if the Node or one of it's properties is inline editable.
Checks if the given Node has any properties configured as 'inlineEditable'
Details
string
wrapContentObject(NodeInterface $node, string $content, string $fusionPath, array $additionalAttributes = [])
This is an extensibility point for other packages to add additional attributes to the wrapping tag.
This method is replaced by the Neos.Ui package via an aspect to add the needed markup for selection.
string
wrapCurrentDocumentMetadata(NodeInterface $node, string $content, string $fusionPath, array $additionalAttributes = [])
No description
protected array
addCssClasses(array $attributes, NodeInterface $node, array $initialClasses = [])
Add required CSS classes to the attributes.
protected array
collectEditingClassNames(NodeInterface $node)
Collects CSS class names used for styling editable elements in the Neos backend.
protected bool
isInlineEditable(NodeInterface $node)
Determine if the Node or one of it's properties is inline editable.
$parsedType = TypeHandling::parseType($dataType);
protected bool
hasInlineEditableProperties(NodeInterface $node)
Checks if the given Node has any properties configured as 'inlineEditable'
protected bool
needsMetadata(NodeInterface $node, bool $renderCurrentDocumentMetadata)
No description