class NodeReferenceConverter extends AbstractTypeConverter (View source)

Converter to convert node references to their identifiers

Properties

protected string[] $sourceTypes

The source types this converter can convert.

protected string $targetType

The target type this converter can convert to.

protected int $priority

The priority for this converter.

Methods

string|array<int,string>
convertFrom(Node|Node[] $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

{@inheritdoc}

Details

string|array<int,string> convertFrom(Node|Node[] $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

{@inheritdoc}

Parameters

Node|Node[] $source
string $targetType
array $convertedChildProperties
PropertyMappingConfigurationInterface $configuration

Return Value

string|array<int,string>

the target type