You are here

protected static function App::propertyToBaseFieldTypeMap in Apigee Edge 8

Static mapping between entity properties and Drupal field types.

Return value

array An associative array where keys are entity properties and values are destination Drupal field types.

Overrides FieldableEdgeEntityBase::propertyToBaseFieldTypeMap

File

src/Entity/App.php, line 362

Class

App
Base class for App Drupal entities.

Namespace

Drupal\apigee_edge\Entity

Code

protected static function propertyToBaseFieldTypeMap() : array {
  return parent::propertyToBaseFieldBlackList() + [
    // UUIDs (developerId, appId) managed on Apigee Edge so we do not
    // want to expose them as UUID fields. Same applies for createdAt and
    // lastModifiedAt. We do not want that Drupal apply default values
    // on them if they are empty therefore their field type is a simple
    // "timestamp" instead of "created" or "changed".
    'createdAt' => 'timestamp',
    'lastModifiedAt' => 'timestamp',
    'scopes' => 'list_string',
    'status' => 'string',
  ];
}