PHP 클래스 Neos\Neos\Service\NodeTypeSchemaBuilder

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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