class NodeHelper implements ProtectedContextAwareInterface (View source)

Eel helper for ContentRepository Nodes

Properties

protected ContentRepositoryRegistry $contentRepositoryRegistry

Methods

Node
nearestContentCollection(Node $node, string $nodePath)

Check if the given node is already a collection, find collection by nodePath otherwise, throw exception if no content collection could be found

labelForNode(Node $node)

Generate a label for a node with a chaining mechanism. To be used in nodetype definitions.

bool
isOfType(Node $node, string $nodeType)

If this node type or any of the direct or indirect super types has the given name.

string
nodeAddressToString(Node $node)

No description

bool
allowsCallOfMethod(string $methodName)

No description

Details

Node nearestContentCollection(Node $node, string $nodePath)

Check if the given node is already a collection, find collection by nodePath otherwise, throw exception if no content collection could be found

Parameters

Node $node
string $nodePath

Return Value

Node

Exceptions

Exception

NodeLabelToken labelForNode(Node $node)

Generate a label for a node with a chaining mechanism. To be used in nodetype definitions.

Parameters

Node $node

Return Value

NodeLabelToken

bool isOfType(Node $node, string $nodeType)

If this node type or any of the direct or indirect super types has the given name.

Parameters

Node $node
string $nodeType

Return Value

bool

string nodeAddressToString(Node $node)

No description

Parameters

Node $node

Return Value

string

bool allowsCallOfMethod(string $methodName)

No description

Parameters

string $methodName

Return Value

bool