final class NodeTypeConstraints (View source)

The list of node type constraints needed for various find() operations on the node tree.

Never create an instance of this object by hand; rather use {\Neos\ContentRepository\Domain\Factory\NodeTypeConstraintFactory}

Properties

protected bool $wildcardAllowed
protected array|NodeTypeName[] $explicitlyAllowedNodeTypeNames
protected array|NodeTypeName[] $explicitlyDisallowedNodeTypeNames

Methods

__construct(bool $wildCardAllowed, array $explicitlyAllowedNodeTypeNames = [], array $explicitlyDisallowedNodeTypeNames = [])

No description

bool
isWildcardAllowed()

No description

array
array
matches(NodeTypeName $nodeTypeName)

No description

withExplicitlyDisallowedNodeType(NodeTypeName $nodeTypeName)

IMMUTABLE, returns a new instance

string
asLegacyNodeTypeFilterString() deprecated

return the legacy (pre-event-sourced) Node Type filter string looking like "Foo:Bar,!MyPackage:Exclude"

Details

__construct(bool $wildCardAllowed, array $explicitlyAllowedNodeTypeNames = [], array $explicitlyDisallowedNodeTypeNames = [])

No description

Parameters

bool $wildCardAllowed
array $explicitlyAllowedNodeTypeNames
array $explicitlyDisallowedNodeTypeNames

bool isWildcardAllowed()

No description

Return Value

bool

array getExplicitlyAllowedNodeTypeNames()

No description

Return Value

array

array getExplicitlyDisallowedNodeTypeNames()

No description

Return Value

array

matches(NodeTypeName $nodeTypeName)

No description

Parameters

NodeTypeName $nodeTypeName

NodeTypeConstraints withExplicitlyDisallowedNodeType(NodeTypeName $nodeTypeName)

IMMUTABLE, returns a new instance

Parameters

NodeTypeName $nodeTypeName

Return Value

NodeTypeConstraints

string asLegacyNodeTypeFilterString() deprecated

deprecated

return the legacy (pre-event-sourced) Node Type filter string looking like "Foo:Bar,!MyPackage:Exclude"

Return Value

string