-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: FEATURE: Overhaul NodeTypeManager #4999
base: 9.0
Are you sure you want to change the base?
Conversation
/** | ||
* @internal | ||
*/ | ||
final class ClosureNodeTypeProvider implements NodeTypeProviderInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would suggest LazyNodeTypeProvider::fromClosure
Merged 9.0 into it and will try to remove the label stuff #5020 again from your pr ;) |
990381c
to
3af6cdb
Compare
This comment was marked as resolved.
This comment was marked as resolved.
@@ -527,18 +222,30 @@ public function getNodeTypeNameOfTetheredNode(NodeName $nodeName): NodeTypeName | |||
* Otherwise, isNodeTypeAllowedAsChildToTetheredNode() needs to be called on the *parent node type*. | |||
* | |||
* @return boolean true if the $nodeType is allowed as child node, false otherwise. | |||
* @deprecated with Neos 9.0 – {@see childNodeTypeConstraints} should be used instead | |||
*/ | |||
public function allowsChildNodeType(NodeType $nodeType): bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so it will be
$nodeType->childNodeTypeConstraints->isNodeTypeAllowed($nodeTypeNameInQuestion);
and not something to ask the nodetypemanager? ... seems to make sense.
…AsChildToTetheredNode` The providers will only gather the node types
WIP because
NodeType
DTONodeTypesProvider
NodeTypePostprocessorInterface
toNeos.Neos
Resolves: #4228