protected static function FieldableEdgeEntityBase::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.
2 calls to FieldableEdgeEntityBase::propertyToBaseFieldTypeMap()
- FieldableEdgeEntityBase::propertyFieldType in src/
Entity/ FieldableEdgeEntityBase.php - Returns the type of the field that should represent an entity property.
- Team::propertyToBaseFieldTypeMap in modules/
apigee_edge_teams/ src/ Entity/ Team.php - Static mapping between entity properties and Drupal field types.
2 methods override FieldableEdgeEntityBase::propertyToBaseFieldTypeMap()
- App::propertyToBaseFieldTypeMap in src/
Entity/ App.php - Static mapping between entity properties and Drupal field types.
- Team::propertyToBaseFieldTypeMap in modules/
apigee_edge_teams/ src/ Entity/ Team.php - Static mapping between entity properties and Drupal field types.
File
- src/
Entity/ FieldableEdgeEntityBase.php, line 186
Class
- FieldableEdgeEntityBase
- Base field support for Apigee Entities without making them content entities.
Namespace
Drupal\apigee_edge\EntityCode
protected static function propertyToBaseFieldTypeMap() : array {
return [
// We do not want Drupal to apply default values
// on these properties if they are empty therefore their field type is
// a simple "timestamp" instead of "created" or "changed".
// (These properties are generally available on Management API
// entities this is the reason why we defined them in this base
// class).
'createdAt' => 'timestamp',
'lastModifiedAt' => 'timestamp',
];
}