public function FieldAttributeConverterInterface::getAttributeValueFromField in Apigee Edge 8
Generate attribute value from field's value.
Parameters
string $entity_type: The entity type.
string $field_name: Name of the field in Drupal.
mixed $field_value: Field's value in Drupal.
Return value
null|string The field value as string for the attribute or NULL if no field formatter found.
1 method overrides FieldAttributeConverterInterface::getAttributeValueFromField()
- FieldAttributeConverter::getAttributeValueFromField in src/
FieldAttributeConverter.php - Generate attribute value from field's value.
File
- src/
FieldAttributeConverterInterface.php, line 82
Class
- FieldAttributeConverterInterface
- Field-attribute converter service definition.
Namespace
Drupal\apigee_edgeCode
public function getAttributeValueFromField(string $entity_type, string $field_name, $field_value);