You are here

protected static function FieldableEdgeEntityBase::propertyToBaseFieldBlackList in Apigee Edge 8

Array of properties that should not be exposed as base fields by default.

Return value

string[] Array with property names.

4 calls to FieldableEdgeEntityBase::propertyToBaseFieldBlackList()
App::propertyToBaseFieldBlackList in src/Entity/App.php
Array of properties that should not be exposed as base fields by default.
App::propertyToBaseFieldTypeMap in src/Entity/App.php
Static mapping between entity properties and Drupal field types.
FieldableEdgeEntityBase::exposePropertyAsBaseField in src/Entity/FieldableEdgeEntityBase.php
Returns whether an entity property is blacklisted to be exposed as field.
Team::propertyToBaseFieldBlackList in modules/apigee_edge_teams/src/Entity/Team.php
Array of properties that should not be exposed as base fields by default.
2 methods override FieldableEdgeEntityBase::propertyToBaseFieldBlackList()
App::propertyToBaseFieldBlackList in src/Entity/App.php
Array of properties that should not be exposed as base fields by default.
Team::propertyToBaseFieldBlackList in modules/apigee_edge_teams/src/Entity/Team.php
Array of properties that should not be exposed as base fields by default.

File

src/Entity/FieldableEdgeEntityBase.php, line 153

Class

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

Namespace

Drupal\apigee_edge\Entity

Code

protected static function propertyToBaseFieldBlackList() : array {
  return [
    // We expose each attribute as a field.
    'attributes',
    // Do not expose the organization user (used in Drupal) who created the
    // entity. (These properties are generally available on Management API
    // entities this is the reason why we blacklisted them in this base
    // class).
    'createdBy',
    'lastModifiedBy',
  ];
}