- "nodeTypes" contains the original (merged) node type schema
- "inheritanceMap.subTypes" contains for every parent type the transitive list of subtypes
- "constraints" contains for each node type, the list of allowed child node types; normalizing
whitelists and blacklists:
- [node type]
- nodeTypes:
[child node type name]: TRUE
- childNodes:
- [child node name]
- nodeTypes:
[child node type name]: TRUE
public generateNodeTypeSchema ( ) : array | ||
return | array | the node type schema ready to be used by the JavaScript code |
public function setUp() { parent::setUp(); $this->nodeTypeSchemaBuilder = $this->objectManager->get(NodeTypeSchemaBuilder::class); $this->schema = $this->nodeTypeSchemaBuilder->generateNodeTypeSchema(); }
/** * Get the node type configuration schema for the Neos UI * * @return string */ public function nodeTypeSchemaAction() { $this->response->setHeader('Content-Type', 'application/json'); return json_encode($this->nodeTypeSchemaBuilder->generateNodeTypeSchema()); }