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

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

Details

static NodeName fromString(string $value)

No description

Parameters

string $value

Return Value

NodeName

static NodeName transliterateFromString(string $name)

Transforms a text into a valid name by removing invalid characters and transliterating special characters if possible.

Parameters

string $name

The possibly invalid name

Return Value

NodeName

string jsonSerialize()

No description

Return Value

string

bool equals(NodeName $other)

No description

Parameters

NodeName $other

Return Value

bool

string __toString()

No description

Return Value

string