Свойство | Тип | Описание | |
---|---|---|---|
$abstract | boolean | Is this node type marked abstract | |
$declaredSuperTypes | array<\Neos\ContentRepository\Domain\Model\NodeType> | node types this node type directly inherits from | |
$final | boolean | Is this node type marked final | |
$fullConfiguration | array | Full configuration for this node type, can be an arbitrarily nested array. Includes any inherited configuration. | |
$initialized | boolean | Whether or not this node type has been initialized (e.g. if it has been postprocessed) | |
$localConfiguration | array | Configuration for this node type, can be an arbitrarily nested array. Does not include inherited configuration. | |
$name | string | Name of this node type. Example: "ContentRepository:Folder" | |
$nodeLabelGenerator | Neos\ContentRepository\Domain\Model\NodeDataLabelGeneratorInterface | Neos\ContentRepository\Domain\Model\NodeLabelGeneratorInterface | ||
$nodeTypeManager | |||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface |
Метод | Описание | |
---|---|---|
__call ( string $methodName, array $arguments ) : mixed | Magic get* and has* method for all properties inside $configuration. | |
__construct ( string $name, array $declaredSuperTypes, array $configuration, array $fullConfiguration = null ) | Constructs this node type | |
__toString ( ) : string | Alias for getName(). | |
allowsChildNodeType ( |
Checks if the given NodeType is acceptable as sub-node with the configured constraints, not taking constraints of auto-created nodes into account. Thus, this method only returns the correct result if called on NON-AUTO-CREATED nodes! | |
allowsGrandchildNodeType ( string $childNodeName, |
Checks if the given $nodeType is allowed as a childNode of the given $childNodeName (which must be auto-created in $this NodeType). | |
getAutoCreatedChildNodes ( ) : array | Return an array with child nodes which should be automatically created | |
getConfiguration ( string $configurationPath ) : mixed | Returns the configuration option with the specified $configurationPath or NULL if it does not exist | |
getDeclaredSuperTypes ( ) : array |
Returns the direct, explicitly declared super types of this node type. | |
getDefaultValuesForProperties ( ) : array | Return an array with the defined default values for each property, if any. | |
getFullConfiguration ( ) : array | Get the full configuration of the node type. Should only be used internally. | |
getLabel ( ) : string | Get the human-readable label of this node type | |
getLocalConfiguration ( ) : array | Get the local configuration of the node type. Should only be used internally. | |
getName ( ) : string | Returns the name of this node type | |
getNodeLabelGenerator ( ) : Neos\ContentRepository\Domain\Model\NodeLabelGeneratorInterface | Return the node label generator class for the given node | |
getOptions ( ) : array | Get additional options (if specified) | |
getProperties ( ) : array | Return the array with the defined properties. The key is the property name, the value the property configuration. There are no guarantees on how the property configuration looks like. | |
getPropertyType ( string $propertyName ) : string | Returns the configured type of the specified property | |
hasConfiguration ( string $configurationPath ) : boolean | Checks if the configuration of this node type contains a setting for the given $configurationPath | |
isAbstract ( ) : boolean | Return boolean TRUE if marked abstract | |
isAggregate ( ) : boolean | Returns whether this node type (or any parent type) is an *aggregate*. | |
isFinal ( ) : boolean | Return boolean TRUE if marked final | |
isOfType ( string $nodeType ) : boolean | If this node type or any of the direct or indirect super types has the given name. |
Метод | Описание | |
---|---|---|
addInheritedSuperTypes ( array &$superTypes, |
Recursively add super types | |
applyPostprocessing ( ) : void | Iterates through configured postprocessors and invokes them | |
buildFullConfiguration ( ) : void | Builds the full configuration by merging configuration from the supertypes into the local configuration. | |
buildInheritanceChain ( ) : array | Returns a flat list of super types to inherit from. | |
initialize ( ) : void | Initializes this node type | |
isNodeTypeAllowedByConstraints ( |
Internal method to check whether the passed-in $nodeType is allowed by the $constraints array. | |
isNodeTypeAllowedByDirectConstraints ( |
||
isNodeTypeAllowedByInheritanceConstraints ( |
This method loops over the constraints and finds node types that the given node type inherits from. For all matched super types, their super types are traversed to find the closest super node with a constraint which is used to evaluated if the node type is allowed. It finds the closest results for true and false, and uses the distance to choose which one wins (lowest). If no result is found the node type is allowed. | |
traverseSuperTypes ( |
This method traverses the given node type to find the first super type that matches the constraint node type. |
public __construct ( string $name, array $declaredSuperTypes, array $configuration, array $fullConfiguration = null ) | ||
$name | string | Name of the node type |
$declaredSuperTypes | array | Parent types of this node type |
$configuration | array | the configuration for this node type which is defined in the schema |
$fullConfiguration | array |
protected addInheritedSuperTypes ( array &$superTypes, |
||
$superTypes | array | |
$superType | ||
Результат | void |
public allowsChildNodeType ( |
||
$nodeType | ||
Результат | boolean | TRUE if the $nodeType is allowed as child node, FALSE otherwise. |
public allowsGrandchildNodeType ( string $childNodeName, |
||
$childNodeName | string | The name of a configured childNode of this NodeType |
$nodeType | The NodeType to check constraints for. | |
Результат | boolean | TRUE if the $nodeType is allowed as grandchild node, FALSE otherwise. |
protected applyPostprocessing ( ) : void | ||
Результат | void |
protected buildFullConfiguration ( ) : void | ||
Результат | void |
protected buildInheritanceChain ( ) : array | ||
Результат | array |
public getAutoCreatedChildNodes ( ) : array | ||
Результат | array | the key of this array is the name of the child, and the value its NodeType. |
public getConfiguration ( string $configurationPath ) : mixed | ||
$configurationPath | string | The name of the configuration option to retrieve |
Результат | mixed |
public getDeclaredSuperTypes ( ) : array |
||
Результат | array |
public getDefaultValuesForProperties ( ) : array | ||
Результат | array |
public getFullConfiguration ( ) : array | ||
Результат | array |
public getLocalConfiguration ( ) : array | ||
Результат | array |
public getNodeLabelGenerator ( ) : Neos\ContentRepository\Domain\Model\NodeLabelGeneratorInterface | ||
Результат | Neos\ContentRepository\Domain\Model\NodeLabelGeneratorInterface |
public getOptions ( ) : array | ||
Результат | array |
public getProperties ( ) : array | ||
Результат | array |
public getPropertyType ( string $propertyName ) : string | ||
$propertyName | string | Name of the property |
Результат | string |
public hasConfiguration ( string $configurationPath ) : boolean | ||
$configurationPath | string | The name of the configuration option to verify |
Результат | boolean |
protected initialize ( ) : void | ||
Результат | void |
public isAbstract ( ) : boolean | ||
Результат | boolean |
public isAggregate ( ) : boolean | ||
Результат | boolean | TRUE if the node type is an aggregate |
protected isNodeTypeAllowedByConstraints ( |
||
$nodeType | ||
$constraints | array | |
Результат | boolean |
protected isNodeTypeAllowedByDirectConstraints ( |
||
$nodeType | ||
$constraints | array | |
Результат | boolean | TRUE if the passed $nodeType is allowed by the $constraints |
protected bool $abstract | ||
Результат | boolean |
protected array<\Neos\ContentRepository\Domain\Model\NodeType> $declaredSuperTypes | ||
Результат | array<\Neos\ContentRepository\Domain\Model\NodeType> |
protected array $fullConfiguration | ||
Результат | array |
protected bool $initialized | ||
Результат | boolean |
protected array $localConfiguration | ||
Результат | array |
protected string $name | ||
Результат | string |
protected NodeDataLabelGeneratorInterface,Neos\ContentRepository\Domain\Model|NodeLabelGeneratorInterface,Neos\ContentRepository\Domain\Model $nodeLabelGenerator | ||
Результат | Neos\ContentRepository\Domain\Model\NodeDataLabelGeneratorInterface | Neos\ContentRepository\Domain\Model\NodeLabelGeneratorInterface |
protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager | ||
Результат |