NodeTypeConstraints
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
getExplicitlyAllowedNodeTypeNames()
No description
array
getExplicitlyDisallowedNodeTypeNames()
No description
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
bool
isWildcardAllowed()
No description
array
getExplicitlyAllowedNodeTypeNames()
No description
array
getExplicitlyDisallowedNodeTypeNames()
No description
matches(NodeTypeName $nodeTypeName)
No description
NodeTypeConstraints
withExplicitlyDisallowedNodeType(NodeTypeName $nodeTypeName)
IMMUTABLE, returns a new instance
string
asLegacyNodeTypeFilterString()
deprecated
deprecated
return the legacy (pre-event-sourced) Node Type filter string looking like "Foo:Bar,!MyPackage:Exclude"