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
convertFrom(NodeInterface|NodeInterface[] $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

{@inheritdoc}

Details

string convertFrom(NodeInterface|NodeInterface[] $source, string $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)

{@inheritdoc}

Parameters

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

Return Value

string

the target type