class NodeTransformation (View source)

Service that executes a series of configured transformations on a node.

Properties

protected ObjectManagerInterface $objectManager
protected TransformationInterface[] $transformationConjunctions

Methods

void
execute(NodeData $nodeData, array $transformationConfigurations)

Executes all configured transformations starting on the given node.

buildTransformationConjunction(array $transformationConfigurations)

No description

buildTransformationObject(array $transformationConfiguration)

Builds a transformation object from the given configuration.

string
resolveTransformationClassName(string $transformationName)

Tries to resolve the given transformation name into a class name.

Details

void execute(NodeData $nodeData, array $transformationConfigurations)

Executes all configured transformations starting on the given node.

Parameters

NodeData $nodeData
array $transformationConfigurations

Return Value

void

protected TransformationInterface[] buildTransformationConjunction(array $transformationConfigurations)

No description

Parameters

array $transformationConfigurations

Return Value

TransformationInterface[]

protected TransformationInterface buildTransformationObject(array $transformationConfiguration)

Builds a transformation object from the given configuration.

Parameters

array $transformationConfiguration

Return Value

TransformationInterface

Exceptions

MigrationException

protected string resolveTransformationClassName(string $transformationName)

Tries to resolve the given transformation name into a class name.

The name can be a fully qualified class name or a name relative to the Neos\ContentRepository\Migration\Transformations namespace.

Parameters

string $transformationName

Return Value

string

Exceptions

MigrationException