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 SessionInterface | $session | ||
protected UserLocaleService | $userLocaleService | ||
protected NodeInfoHelper | $nodeInfoHelper | ||
protected ContentRepositoryRegistry | $contentRepositoryRegistry | ||
protected Node> | $renderedNodes | All editable nodes rendered in the document |
|
protected string | $nonRenderedContentNodeMetadata | String containing |
Methods
No description
Wrap the $content identified by $node with the needed markup for the backend.
No description
Collects metadata attributes used to allow editing of the node in the Neos backend.
Adds node properties to the given $attributes collection and returns the extended array
Renders data attributes needed for the given node property.
Collects metadata for the Neos backend specifically for document nodes.
Add required CSS classes to the attributes.
Concatenate strings containing <script>
tags for all child nodes not rendered
within the current document node. This way we can show e.g. content collections
within the structure tree which are not actually rendered.
Clear rendered nodes helper array to prevent possible side effects.
Clear non rendered content node metadata to prevent possible side effects.
No description
Converts camelCased strings to lower cased and non-camel-cased strings
No description
Details
__construct()
No description
string|null
wrapContentObject(Node $node, string $content, string $fusionPath, array $additionalAttributes = [])
Wrap the $content identified by $node with the needed markup for the backend.
string
wrapCurrentDocumentMetadata(Node $node, string $content, string $fusionPath, array $additionalAttributes = [], Node|null $siteNode = null)
No description
protected array
addGenericEditingMetadata(array $attributes, Node $node)
Collects metadata attributes used to allow editing of the node in the Neos backend.
protected array
addNodePropertyAttributes(array $attributes, Node $node)
Adds node properties to the given $attributes collection and returns the extended array
protected array
renderNodePropertyAttribute(Node $node, string $propertyName)
Renders data attributes needed for the given node property.
protected array
addDocumentMetadata(ContentRepository $contentRepository, array $attributes, Node $node, Node|null $siteNode)
Collects metadata for the Neos backend specifically for document nodes.
protected array
addCssClasses(array $attributes, Node $node, array $initialClasses = [])
Add required CSS classes to the attributes.
protected void
appendNonRenderedContentNodeMetadata(Node $documentNode)
Concatenate strings containing <script>
tags for all child nodes not rendered
within the current document node. This way we can show e.g. content collections
within the structure tree which are not actually rendered.
protected void
clearRenderedNodesArray()
Clear rendered nodes helper array to prevent possible side effects.
protected void
clearNonRenderedContentNodeMetadata()
Clear non rendered content node metadata to prevent possible side effects.
string
getNonRenderedContentNodeMetadata(Node $documentNode)
No description
protected string
dasherize(string $value)
Converts camelCased strings to lower cased and non-camel-cased strings
protected bool
needsMetadata(Node $node, ContentRepository $contentRepository, bool $renderCurrentDocumentMetadata)
No description