PHP Class Neos\Neos\Service\NodeTypeSchemaBuilder

Datei anzeigen Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager

Public Methods

Method Description
generateNodeTypeSchema ( ) : array The preprocessed node type schema contains everything we need for the UI:

Protected Methods

Method Description
flattenAlohaFormatOptions ( array &$options ) : void In order to allow unsetting options via the YAML settings merging, the formatting options can be set via 'option': TRUE, however, the frontend schema expects a flattened plain numeric array. This methods adjust the setting accordingly.
generateConstraints ( ) : array Generate the list of allowed sub-node-types per parent-node-type and child-node-name.

Method Details

flattenAlohaFormatOptions() protected method

In order to allow unsetting options via the YAML settings merging, the formatting options can be set via 'option': TRUE, however, the frontend schema expects a flattened plain numeric array. This methods adjust the setting accordingly.
protected flattenAlohaFormatOptions ( array &$options ) : void
$options array The options array, passed by reference
return void

generateConstraints() protected method

Generate the list of allowed sub-node-types per parent-node-type and child-node-name.
protected generateConstraints ( ) : array
return array constraints

generateNodeTypeSchema() public method

- "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

Property Details

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
return Neos\ContentRepository\Domain\Service\NodeTypeManager