public function EntityTestRevStorageController::baseFieldDefinitions

Overrides \Drupal\entity_test\EntityTestStorageController::baseFieldDefinitions().

Overrides EntityTestStorageController::baseFieldDefinitions

File

drupal/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/EntityTestRevStorageController.php, line 23
Definition of Drupal\entity_test\EntityTestRevStorageController.

Class

EntityTestRevStorageController
Defines the controller class for the test entity.

Namespace

Drupal\entity_test

Code

public function baseFieldDefinitions() {
  $fields = parent::baseFieldDefinitions();
  $fields['revision_id'] = array(
    'label' => t('ID'),
    'description' => t('The version id of the test entity.'),
    'type' => 'integer_field',
    'read-only' => TRUE,
  );
  return $fields;
}