PHP Class Neos\Neos\Service\NodeTypeSchemaBuilder

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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
Résultat void

generateConstraints() protected méthode

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

generateNodeTypeSchema() public méthode

- "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
Résultat 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
Résultat Neos\ContentRepository\Domain\Service\NodeTypeManager