PHP Класс Neos\Neos\Service\NodeTypeSchemaBuilder

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager

Открытые методы

Метод Описание
generateNodeTypeSchema ( ) : array The preprocessed node type schema contains everything we need for the UI:

Защищенные методы

Метод Описание
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.

Описание методов

flattenAlohaFormatOptions() защищенный метод

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
Результат void

generateConstraints() защищенный метод

Generate the list of allowed sub-node-types per parent-node-type and child-node-name.
protected generateConstraints ( ) : array
Результат array constraints

generateNodeTypeSchema() публичный метод

- "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
Результат array the node type schema ready to be used by the JavaScript code

Описание свойств

$nodeTypeManager защищенное свойство

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Результат Neos\ContentRepository\Domain\Service\NodeTypeManager