PHP Class Neos\Neos\Aspects\NodeTypeConfigurationEnrichmentAspect

Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство Type Description
$dataTypesDefaultConfiguration array
$editorDefaultConfiguration array
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$translator Neos\Flow\I18n\Translator

Méthodes publiques

Méthode Description
enrichNodeTypeConfiguration ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void

Méthodes protégées

Méthode Description
addEditorDefaultsToNodeTypeConfiguration ( string $nodeTypeName, array &$configuration ) : void
addLabelsToNodeTypeConfiguration ( string $nodeTypeName, array &$configuration ) : void
applyInspectorEditorLabels ( string $nodeTypeLabelIdPrefix, string $propertyName, array &$propertyConfiguration ) : void
generateNodeTypeLabelIdPrefix ( string $nodeTypeName ) : string Generates a label prefix for a specific node type with this format: "Vendor_Package:NodeTypes.NodeTypeName"
getInspectorElementTranslationId ( string $nodeTypeSpecificPrefix, string $elementType, string $elementName ) : string Generates a generic inspector element label with the given $nodeTypeSpecificPrefix.
getPropertyConfigurationTranslationId ( string $nodeTypeSpecificPrefix, string $propertyName, string $labelPath ) : string Generates a property configuration-label with the given $nodeTypeSpecificPrefix.
getPropertyLabelTranslationId ( string $nodeTypeSpecificPrefix, string $propertyName ) : string Generates a property label with the given $nodeTypeSpecificPrefix.
resolveHelpMessageThumbnail ( string $nodeTypeName, string $configurationThumbnail ) : string Resolve help message thumbnail url
setGlobalUiElementLabels ( $nodeTypeName, array &$configuration ) : void Sets labels for global NodeType elements like tabs and groups and the general label.
setPropertyLabels ( $nodeTypeName, array &$configuration ) : void
shouldFetchTranslation ( array $parentConfiguration, string $fieldName = 'label' ) : boolean Should a label be generated for the given field or is there something configured?
splitIdentifier ( string $id ) : array Splits an identifier string of the form PackageKey:id or PackageKey:Source:id into an array with the keys id, source and packageKey.

Method Details

addEditorDefaultsToNodeTypeConfiguration() protected méthode

protected addEditorDefaultsToNodeTypeConfiguration ( string $nodeTypeName, array &$configuration ) : void
$nodeTypeName string
$configuration array
Résultat void

addLabelsToNodeTypeConfiguration() protected méthode

protected addLabelsToNodeTypeConfiguration ( string $nodeTypeName, array &$configuration ) : void
$nodeTypeName string
$configuration array
Résultat void

applyInspectorEditorLabels() protected méthode

protected applyInspectorEditorLabels ( string $nodeTypeLabelIdPrefix, string $propertyName, array &$propertyConfiguration ) : void
$nodeTypeLabelIdPrefix string
$propertyName string
$propertyConfiguration array
Résultat void

enrichNodeTypeConfiguration() public méthode

public enrichNodeTypeConfiguration ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface
Résultat void

generateNodeTypeLabelIdPrefix() protected méthode

Generates a label prefix for a specific node type with this format: "Vendor_Package:NodeTypes.NodeTypeName"
protected generateNodeTypeLabelIdPrefix ( string $nodeTypeName ) : string
$nodeTypeName string
Résultat string

getInspectorElementTranslationId() protected méthode

Generates a generic inspector element label with the given $nodeTypeSpecificPrefix.
protected getInspectorElementTranslationId ( string $nodeTypeSpecificPrefix, string $elementType, string $elementName ) : string
$nodeTypeSpecificPrefix string
$elementType string
$elementName string
Résultat string

getPropertyConfigurationTranslationId() protected méthode

Generates a property configuration-label with the given $nodeTypeSpecificPrefix.
protected getPropertyConfigurationTranslationId ( string $nodeTypeSpecificPrefix, string $propertyName, string $labelPath ) : string
$nodeTypeSpecificPrefix string
$propertyName string
$labelPath string
Résultat string

getPropertyLabelTranslationId() protected méthode

Generates a property label with the given $nodeTypeSpecificPrefix.
protected getPropertyLabelTranslationId ( string $nodeTypeSpecificPrefix, string $propertyName ) : string
$nodeTypeSpecificPrefix string
$propertyName string
Résultat string

resolveHelpMessageThumbnail() protected méthode

Resolve help message thumbnail url
protected resolveHelpMessageThumbnail ( string $nodeTypeName, string $configurationThumbnail ) : string
$nodeTypeName string
$configurationThumbnail string
Résultat string $thumbnailUrl

setGlobalUiElementLabels() protected méthode

Sets labels for global NodeType elements like tabs and groups and the general label.
protected setGlobalUiElementLabels ( $nodeTypeName, array &$configuration ) : void
$configuration array
Résultat void

setPropertyLabels() protected méthode

protected setPropertyLabels ( $nodeTypeName, array &$configuration ) : void
$configuration array
Résultat void

shouldFetchTranslation() protected méthode

Should a label be generated for the given field or is there something configured?
protected shouldFetchTranslation ( array $parentConfiguration, string $fieldName = 'label' ) : boolean
$parentConfiguration array
$fieldName string Name of the possibly existing subfield
Résultat boolean

splitIdentifier() protected méthode

Splits an identifier string of the form PackageKey:id or PackageKey:Source:id into an array with the keys id, source and packageKey.
protected splitIdentifier ( string $id ) : array
$id string translation id with possible package and source parts
Résultat array

Property Details

$dataTypesDefaultConfiguration protected_oe property

protected array $dataTypesDefaultConfiguration
Résultat array

$editorDefaultConfiguration protected_oe property

protected array $editorDefaultConfiguration
Résultat array

$resourceManager protected_oe property

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
Résultat Neos\Flow\ResourceManagement\ResourceManager

$translator protected_oe property

protected Translator,Neos\Flow\I18n $translator
Résultat Neos\Flow\I18n\Translator