NodeTypeEnrichmentService
class NodeTypeEnrichmentService (View source)
internal |
Take the node types after loading and replace i18n
labels with the namespaced parts.
This happens BEFORE the node types are merged with the super types (in the node type management); but this is implemented as the last step of the {\Neos\ContentRepositoryRegistry\Configuration\NodeTypesLoader}.
Properties
protected ResourceManager | $resourceManager |
Methods
No description
No description
No description
Resolve help message thumbnail url
No description
Sets labels for global NodeType elements like tabs and groups and the general label.
Should a label be generated for the given field or is there something configured?
Generates a generic inspector element label with the given $nodeTypeSpecificPrefix.
Generates a property label with the given $nodeTypeSpecificPrefix.
Generates a property configuration-label with the given $nodeTypeSpecificPrefix.
Generates a label prefix for a specific node type with this format: "Vendor_Package:NodeTypes.NodeTypeName"
Splits an identifier string of the form PackageKey:id or PackageKey:Source:id into an array with the keys id, source and packageKey.
Details
array
enrichNodeTypeLabelsConfiguration(array $fullConfiguration)
No description
protected void
addLabelsToNodeTypeConfiguration(string $nodeTypeName, array $configuration, SuperTypeConfigResolver $superTypeConfigResolver)
No description
protected void
setPropertyLabels(string $nodeTypeName, array $configuration, SuperTypeConfigResolver $superTypeConfigResolver)
No description
protected string
resolveHelpMessageThumbnail(string $nodeTypeName, string $configurationThumbnail)
Resolve help message thumbnail url
protected void
applyEditorLabels(string $nodeTypeLabelIdPrefix, string $propertyName, string $editorName, array $editorOptions, callable $translationIdGenerator)
No description
protected void
setGlobalUiElementLabels(string $nodeTypeName, array $configuration)
Sets labels for global NodeType elements like tabs and groups and the general label.
protected bool
shouldFetchTranslation(array $parentConfiguration, string $fieldName = 'label')
Should a label be generated for the given field or is there something configured?
protected string
getInspectorElementTranslationId(string $nodeTypeSpecificPrefix, string $elementType, string $elementName)
Generates a generic inspector element label with the given $nodeTypeSpecificPrefix.
protected string
getPropertyLabelTranslationId(string $nodeTypeSpecificPrefix, string $propertyName)
Generates a property label with the given $nodeTypeSpecificPrefix.
protected string
getPropertyConfigurationTranslationId(string $nodeTypeSpecificPrefix, string $propertyName, string $labelPath)
Generates a property configuration-label with the given $nodeTypeSpecificPrefix.
protected string
generateNodeTypeLabelIdPrefix(string $nodeTypeName)
Generates a label prefix for a specific node type with this format: "Vendor_Package:NodeTypes.NodeTypeName"
protected array<string,string>
splitIdentifier(string $id)
Splits an identifier string of the form PackageKey:id or PackageKey:Source:id into an array with the keys id, source and packageKey.