<?php/**
* @file
* Definition of Drupal\entity_test\EntityTestMulStorageController.
*/namespaceDrupal\entity_test;
useDrupal\entity_test\EntityTestStorageController;
/**
* Defines the controller class for the test entity.
*
* This extends the Drupal\entity_test\EntityTestStorageController class, adding
* required special handling for test entities with multilingual property
* support.
*/class EntityTestMulStorageControllerextends EntityTestStorageController {
/**
* Overrides \Drupal\entity_test\EntityTestStorageController::baseFieldDefinitions().
*/
public functionbaseFieldDefinitions() {
$fields = parent::baseFieldDefinitions();
$fields['default_langcode'] = array(
'label' => t('Default language'),
'description' => t('Flag to indicate whether this is the default language.'),
'type' => 'boolean_field',
);
return$fields;
}
}