You are here

public function FieldAttributeConverter::getFieldName in Apigee Edge 8

Returns the name of the mapped field to an attribute.

Parameters

string $attribute_name: Name of an attribute.

Return value

string Name of the mapped field.

Overrides FieldAttributeConverterInterface::getFieldName

File

src/FieldAttributeConverter.php, line 103

Class

FieldAttributeConverter
Default field-attribute converter service implementation.

Namespace

Drupal\apigee_edge

Code

public function getFieldName(string $attribute_name) : string {
  $field_prefix = $this
    ->getFieldPrefix();
  return strpos($attribute_name, $field_prefix) === 0 ? $attribute_name : $field_prefix . $attribute_name;
}