Implements hook_entity_info_alter().
function entity_test_entity_info_alter(&$info) {
// Optionally specify a translation handler for testing translations.
if (state()
->get('entity_test.translation')) {
$info['entity_test']['translation']['entity_test'] = TRUE;
}
// Optionally unset the access controller to test the fallback.
if (state()
->get('entity_test.default_access_controller')) {
unset($info['entity_test']['access_controller_class']);
}
}