NodeName
final class NodeName implements JsonSerializable (View source)
The Node name is the "path part" of the node; i.e. when accessing the node "/foo" via path {NodePath}, the node name is "foo".
Semantically it describes the hierarchical relation of a node to its parent, e.g. "main" denotes the main child node.
Multiple node names describe a node path {\Neos\ContentRepository\Core\Projection\ContentGraph\NodePath}
To fetch the child node that is connected with the parent via the name "main" use the subgraph's: {\Neos\ContentRepository\Core\SharedModel\Node\ContentSubgraphInterface::findNodeByPath()}
$subgraph->findNodeByPath(
NodeName::fromString("main"),
$parentNodeAggregateId
) Constants
| PATTERN |
|
Methods
No description
Transforms a text into a valid name by removing invalid characters and transliterating special characters if possible.
No description
No description
Details
static NodeName
fromString(string $value)
No description
static NodeName
transliterateFromString(string $name)
Transforms a text into a valid name by removing invalid characters and transliterating special characters if possible.
string
jsonSerialize()
No description
bool
equals(NodeName $other)
No description
string
__toString()
No description