PHP Класс Neos\Neos\Aspects\NodeTypeConfigurationEnrichmentAspect

Показать файл Открыть проект

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

Свойство Тип Описание
$dataTypesDefaultConfiguration array
$editorDefaultConfiguration array
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$translator Neos\Flow\I18n\Translator

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

Метод Описание
enrichNodeTypeConfiguration ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void

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

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

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

addEditorDefaultsToNodeTypeConfiguration() защищенный Метод

protected addEditorDefaultsToNodeTypeConfiguration ( string $nodeTypeName, array &$configuration ) : void
$nodeTypeName string
$configuration array
Результат void

addLabelsToNodeTypeConfiguration() защищенный Метод

protected addLabelsToNodeTypeConfiguration ( string $nodeTypeName, array &$configuration ) : void
$nodeTypeName string
$configuration array
Результат void

applyInspectorEditorLabels() защищенный Метод

protected applyInspectorEditorLabels ( string $nodeTypeLabelIdPrefix, string $propertyName, array &$propertyConfiguration ) : void
$nodeTypeLabelIdPrefix string
$propertyName string
$propertyConfiguration array
Результат void

enrichNodeTypeConfiguration() публичный Метод

public enrichNodeTypeConfiguration ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface
Результат void

generateNodeTypeLabelIdPrefix() защищенный Метод

Generates a label prefix for a specific node type with this format: "Vendor_Package:NodeTypes.NodeTypeName"
protected generateNodeTypeLabelIdPrefix ( string $nodeTypeName ) : string
$nodeTypeName string
Результат string

getInspectorElementTranslationId() защищенный Метод

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

getPropertyConfigurationTranslationId() защищенный Метод

Generates a property configuration-label with the given $nodeTypeSpecificPrefix.
protected getPropertyConfigurationTranslationId ( string $nodeTypeSpecificPrefix, string $propertyName, string $labelPath ) : string
$nodeTypeSpecificPrefix string
$propertyName string
$labelPath string
Результат string

getPropertyLabelTranslationId() защищенный Метод

Generates a property label with the given $nodeTypeSpecificPrefix.
protected getPropertyLabelTranslationId ( string $nodeTypeSpecificPrefix, string $propertyName ) : string
$nodeTypeSpecificPrefix string
$propertyName string
Результат string

resolveHelpMessageThumbnail() защищенный Метод

Resolve help message thumbnail url
protected resolveHelpMessageThumbnail ( string $nodeTypeName, string $configurationThumbnail ) : string
$nodeTypeName string
$configurationThumbnail string
Результат string $thumbnailUrl

setGlobalUiElementLabels() защищенный Метод

Sets labels for global NodeType elements like tabs and groups and the general label.
protected setGlobalUiElementLabels ( $nodeTypeName, array &$configuration ) : void
$configuration array
Результат void

setPropertyLabels() защищенный Метод

protected setPropertyLabels ( $nodeTypeName, array &$configuration ) : void
$configuration array
Результат void

shouldFetchTranslation() защищенный Метод

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

splitIdentifier() защищенный Метод

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

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

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

protected array $dataTypesDefaultConfiguration
Результат array

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

protected array $editorDefaultConfiguration
Результат array

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

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
Результат Neos\Flow\ResourceManagement\ResourceManager

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

protected Translator,Neos\Flow\I18n $translator
Результат Neos\Flow\I18n\Translator