NodeTypeConfigurationEnrichmentAspect
class NodeTypeConfigurationEnrichmentAspect (View source)
Properties
protected array | $dataTypesDefaultConfiguration | ||
protected array | $editorDefaultConfiguration | ||
protected Translator | $translator | ||
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
void
enrichNodeTypeLabelsConfiguration(JoinPointInterface $joinPoint)
No description
protected void
addLabelsToNodeTypeConfiguration(string $nodeTypeName, array $configuration, array $declaredSuperTypes)
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.