public function EntityTestMulRevStorageController::baseFieldDefinitions

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

Overrides EntityTestStorageController::baseFieldDefinitions

File

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

Class

EntityTestMulRevStorageController
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,
  );
  $fields['default_langcode'] = array(
    'label' => t('Default language'),
    'description' => t('Flag to inditcate whether this is the default language.'),
    'type' => 'boolean_field',
  );
  return $fields;
}