You are here

private static function FieldableEdgeEntityBase::propertyFieldType in Apigee Edge 8

Returns the type of the field that should represent an entity property.

Parameters

string $property: Property name.

Return value

string Type of the field that should represent an entity property. Default is string.

4 calls to FieldableEdgeEntityBase::propertyFieldType()
FieldableEdgeEntityBase::convertFieldValueToPropertyValue in src/Entity/FieldableEdgeEntityBase.php
Converts a field value to a property value.
FieldableEdgeEntityBase::get in src/Entity/FieldableEdgeEntityBase.php
Gets a field item list.
FieldableEdgeEntityBase::getProperties in src/Entity/FieldableEdgeEntityBase.php
Parses the properties and its types from the parent class.
FieldableEdgeEntityBase::set in src/Entity/FieldableEdgeEntityBase.php
Sets a field value.

File

src/Entity/FieldableEdgeEntityBase.php, line 209

Class

FieldableEdgeEntityBase
Base field support for Apigee Entities without making them content entities.

Namespace

Drupal\apigee_edge\Entity

Code

private static function propertyFieldType(string $property) : string {
  return array_key_exists($property, static::propertyToBaseFieldTypeMap()) ? static::propertyToBaseFieldTypeMap()[$property] : 'string';
}