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 | ||
protected NodePropertyConverterService | $nodePropertyConverterService |
Methods
Wrap the $content identified by $node with the needed markup for the backend.
No description
Adds node properties to the given $attributes collection and returns the extended array
Renders data attributes needed for the given node property.
Add required CSS classes to the attributes.
Collects metadata for the Neos backend specifically for document nodes.
Collects metadata attributes used to allow editing of the node in the Neos backend.
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'
Converts camelCased strings to lower cased and non-camel-cased strings
Details
string
wrapContentObject(NodeInterface $node, string $content, string $fusionPath, array $additionalAttributes = [])
Wrap the $content identified by $node with the needed markup for the backend.
string
wrapCurrentDocumentMetadata(NodeInterface $node, string $content, string $fusionPath, array $additionalAttributes = [])
No description
protected array
addNodePropertyAttributes(array $attributes, NodeInterface $node)
Adds node properties to the given $attributes collection and returns the extended array
protected array
renderNodePropertyAttribute(NodeInterface $node, string $propertyName)
Renders data attributes needed for the given node property.
protected array
addCssClasses(array $attributes, NodeInterface $node, array $initialClasses = [])
Add required CSS classes to the attributes.
protected array
addDocumentMetadata(array $attributes, NodeInterface $node)
Collects metadata for the Neos backend specifically for document nodes.
protected array
addGenericEditingMetadata(array $attributes, NodeInterface $node)
Collects metadata attributes used to allow editing of the node in the Neos backend.
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
protected string
dasherize(string $value)
Converts camelCased strings to lower cased and non-camel-cased strings