NodeTypeConfigurationEnrichmentAspect
class NodeTypeConfigurationEnrichmentAspect (View source)
Properties
protected array | $dataTypesDefaultConfiguration | ||
protected array | $editorDefaultConfiguration | ||
protected Translator | $translator | ||
protected ResourceManager | $resourceManager | ||
protected IconNameMappingService | $iconNameMappingService |
Methods
No description
No description
No description
Map all icon- prefixed icon names to the corresponding names in the used icon implementation
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
void
enrichNodeTypeConfiguration(JoinPointInterface $joinPoint)
No description
void
enrichNodeTypeLabelsConfiguration(JoinPointInterface $joinPoint)
No description
protected void
addLabelsToNodeTypeConfiguration(string $nodeTypeName, array $configuration, array $declaredSuperTypes)
No description
protected
mapIconNames(array $configuration)
Map all icon- prefixed icon names to the corresponding names in the used icon implementation
protected void
addEditorDefaultsToNodeTypeConfiguration(string $nodeTypeName, array $configuration)
No description
protected void
setPropertyLabels($nodeTypeName, array $configuration, array $declaredSuperTypes)
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($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
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.