You are here

public function FieldAttributeConverterInterface::getFieldValueFromAttribute in Apigee Edge 8

Gets field value from the related attribute.

Parameters

string $entity_type: The entity type.

string $field_name: Name of a field in Drupal.

\Apigee\Edge\Structure\AttributesProperty $attributes: Attribute property that contains the attributes on an entity.

Return value

mixed|null Field value from related attribute. It returns NULL if field does not have an attribute on the entity or its value is actually NULL.

1 method overrides FieldAttributeConverterInterface::getFieldValueFromAttribute()
FieldAttributeConverter::getFieldValueFromAttribute in src/FieldAttributeConverter.php
Gets field value from the related attribute.

File

src/FieldAttributeConverterInterface.php, line 66

Class

FieldAttributeConverterInterface
Field-attribute converter service definition.

Namespace

Drupal\apigee_edge

Code

public function getFieldValueFromAttribute(string $entity_type, string $field_name, AttributesProperty $attributes);