NodePropertyConverterService
class NodePropertyConverterService (View source)
Creates PropertyMappingConfigurations to map NodeType properties for the Neos interface.
Properties
protected array | $typesConfiguration | ||
protected ObjectManagerInterface | $objectManager | ||
protected PropertyMapper | $propertyMapper | ||
protected array | $generatedPropertyMappingConfigurations |
Methods
No description
No description
Get a single property reduced to a simple type (no objects) representation
Get all properties reduced to simple type (no objects) representations in an array
Convert the given value to a simple type or an array of simple types.
Tries to find a default value for the given property trying: 1) The specific property configuration for the given NodeType 2) The generic configuration for the property type in settings.
Create a property mapping configuration for the given dataType to convert a Node property value from the given dataType to a simple type.
No description
No description
Details
injectLogger(LoggerInterface $logger)
No description
injectThrowableStorage(ThrowableStorageInterface $throwableStorage)
No description
mixed
getProperty(NodeInterface $node, string $propertyName)
Get a single property reduced to a simple type (no objects) representation
string
getPropertiesJson(NodeInterface $node)
Get all properties as JSON encoded string representation
array
getPropertiesArray(NodeInterface $node)
Get all properties reduced to simple type (no objects) representations in an array
protected mixed
convertValue(mixed $propertyValue, string $dataType)
Convert the given value to a simple type or an array of simple types.
protected mixed
getDefaultValueForProperty(NodeType $nodeType, string $propertyName)
Tries to find a default value for the given property trying: 1) The specific property configuration for the given NodeType 2) The generic configuration for the property type in settings.
protected PropertyMappingConfigurationInterface
createConfiguration(string $dataType)
Create a property mapping configuration for the given dataType to convert a Node property value from the given dataType to a simple type.
protected bool
setTypeConverterForType(PropertyMappingConfiguration $propertyMappingConfiguration, string $dataType)
No description
protected void
setTypeConverterOptionsForType(PropertyMappingConfiguration $propertyMappingConfiguration, string $typeConverterClass, string $dataType)
No description