Commit bf3e9cfa authored by alexpott's avatar alexpott

Issue #2112705 by mikey_p: Replace EntityType::$module with provider.

parent 97fc3d31
...@@ -191,26 +191,6 @@ function config_context_leave() { ...@@ -191,26 +191,6 @@ function config_context_leave() {
->leaveContext(); ->leaveContext();
} }
/**
* Return a list of all config entity types provided by a module.
*
* @param string $module
* The name of the module possibly providing config entities.
*
* @return array
* An associative array containing the entity info for any config entities
* provided by the requested module, keyed by the entity type.
*/
function config_get_module_config_entities($module) {
// While this is a lot of work to generate, it's not worth static caching
// since this function is only called at install/uninstall, and only
// once per module.
$info = entity_get_info();
return array_filter($info, function($entity_info) use ($module) {
return ($entity_info['module'] == $module) && is_subclass_of($entity_info['class'], 'Drupal\Core\Config\Entity\ConfigEntityInterface');
});
}
/** /**
* Returns the entity type of a configuration object. * Returns the entity type of a configuration object.
* *
......
...@@ -16,13 +16,6 @@ ...@@ -16,13 +16,6 @@
*/ */
class EntityType extends Plugin { class EntityType extends Plugin {
/**
* The name of the module providing the type.
*
* @var string
*/
public $module;
/** /**
* The name of the entity type class. * The name of the entity type class.
* *
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
* @EntityType( * @EntityType(
* id = "aggregator_feed", * id = "aggregator_feed",
* label = @Translation("Aggregator feed"), * label = @Translation("Aggregator feed"),
* module = "aggregator",
* controllers = { * controllers = {
* "storage" = "Drupal\aggregator\FeedStorageController", * "storage" = "Drupal\aggregator\FeedStorageController",
* "view_builder" = "Drupal\aggregator\FeedViewBuilder", * "view_builder" = "Drupal\aggregator\FeedViewBuilder",
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
* @EntityType( * @EntityType(
* id = "aggregator_item", * id = "aggregator_item",
* label = @Translation("Aggregator feed item"), * label = @Translation("Aggregator feed item"),
* module = "aggregator",
* controllers = { * controllers = {
* "storage" = "Drupal\aggregator\ItemStorageController", * "storage" = "Drupal\aggregator\ItemStorageController",
* "view_builder" = "Drupal\aggregator\ItemViewBuilder" * "view_builder" = "Drupal\aggregator\ItemViewBuilder"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
* id = "custom_block", * id = "custom_block",
* label = @Translation("Custom Block"), * label = @Translation("Custom Block"),
* bundle_label = @Translation("Custom Block type"), * bundle_label = @Translation("Custom Block type"),
* module = "custom_block",
* controllers = { * controllers = {
* "storage" = "Drupal\custom_block\CustomBlockStorageController", * "storage" = "Drupal\custom_block\CustomBlockStorageController",
* "access" = "Drupal\custom_block\CustomBlockAccessController", * "access" = "Drupal\custom_block\CustomBlockAccessController",
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
* @EntityType( * @EntityType(
* id = "custom_block_type", * id = "custom_block_type",
* label = @Translation("Custom block type"), * label = @Translation("Custom block type"),
* module = "custom_block",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController",
* "form" = { * "form" = {
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
* @EntityType( * @EntityType(
* id = "block", * id = "block",
* label = @Translation("Block"), * label = @Translation("Block"),
* module = "block",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController",
* "access" = "Drupal\block\BlockAccessController", * "access" = "Drupal\block\BlockAccessController",
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
* @EntityType( * @EntityType(
* id = "breakpoint", * id = "breakpoint",
* label = @Translation("Breakpoint"), * label = @Translation("Breakpoint"),
* module = "breakpoint",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController" * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController"
* }, * },
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
* @EntityType( * @EntityType(
* id = "breakpoint_group", * id = "breakpoint_group",
* label = @Translation("Breakpoint group"), * label = @Translation("Breakpoint group"),
* module = "breakpoint",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController" * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController"
* }, * },
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
* id = "comment", * id = "comment",
* label = @Translation("Comment"), * label = @Translation("Comment"),
* bundle_label = @Translation("Content type"), * bundle_label = @Translation("Content type"),
* module = "comment",
* controllers = { * controllers = {
* "storage" = "Drupal\comment\CommentStorageController", * "storage" = "Drupal\comment\CommentStorageController",
* "access" = "Drupal\comment\CommentAccessController", * "access" = "Drupal\comment\CommentAccessController",
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
* @EntityType( * @EntityType(
* id = "config_query_test", * id = "config_query_test",
* label = @Translation("Test configuration for query"), * label = @Translation("Test configuration for query"),
* module = "config_test",
* controllers = { * controllers = {
* "storage" = "Drupal\config_test\ConfigTestStorageController", * "storage" = "Drupal\config_test\ConfigTestStorageController",
* "list" = "Drupal\Core\Config\Entity\ConfigEntityListController", * "list" = "Drupal\Core\Config\Entity\ConfigEntityListController",
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
* @EntityType( * @EntityType(
* id = "config_test", * id = "config_test",
* label = @Translation("Test configuration"), * label = @Translation("Test configuration"),
* module = "config_test",
* controllers = { * controllers = {
* "storage" = "Drupal\config_test\ConfigTestStorageController", * "storage" = "Drupal\config_test\ConfigTestStorageController",
* "list" = "Drupal\config_test\ConfigTestListController", * "list" = "Drupal\config_test\ConfigTestListController",
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
* @EntityType( * @EntityType(
* id = "contact_category", * id = "contact_category",
* label = @Translation("Contact category"), * label = @Translation("Contact category"),
* module = "contact",
* controllers = { * controllers = {
* "storage" = "Drupal\contact\CategoryStorageController", * "storage" = "Drupal\contact\CategoryStorageController",
* "access" = "Drupal\contact\CategoryAccessController", * "access" = "Drupal\contact\CategoryAccessController",
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
* @EntityType( * @EntityType(
* id = "contact_message", * id = "contact_message",
* label = @Translation("Contact message"), * label = @Translation("Contact message"),
* module = "contact",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Entity\FieldableDatabaseStorageController", * "storage" = "Drupal\Core\Entity\FieldableDatabaseStorageController",
* "view_builder" = "Drupal\contact\MessageViewBuilder", * "view_builder" = "Drupal\contact\MessageViewBuilder",
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
* @EntityType( * @EntityType(
* id = "editor", * id = "editor",
* label = @Translation("Editor"), * label = @Translation("Editor"),
* module = "editor",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController" * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController"
* }, * },
......
...@@ -164,7 +164,7 @@ function entity_module_preuninstall($module) { ...@@ -164,7 +164,7 @@ function entity_module_preuninstall($module) {
// Clean up all entity bundles (including field instances) of every entity // Clean up all entity bundles (including field instances) of every entity
// type provided by the module that is being uninstalled. // type provided by the module that is being uninstalled.
foreach (\Drupal::entityManager()->getDefinitions() as $entity_type => $entity_info) { foreach (\Drupal::entityManager()->getDefinitions() as $entity_type => $entity_info) {
if ($entity_info['module'] == $module) { if ($entity_info['provider'] == $module) {
foreach (array_keys(entity_get_bundles($entity_type)) as $bundle) { foreach (array_keys(entity_get_bundles($entity_type)) as $bundle) {
entity_invoke_bundle_hook('delete', $entity_type, $bundle); entity_invoke_bundle_hook('delete', $entity_type, $bundle);
} }
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
* @EntityType( * @EntityType(
* id = "entity_display", * id = "entity_display",
* label = @Translation("Entity display"), * label = @Translation("Entity display"),
* module = "entity",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController" * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController"
* }, * },
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
* @EntityType( * @EntityType(
* id = "entity_form_display", * id = "entity_form_display",
* label = @Translation("Entity form display"), * label = @Translation("Entity form display"),
* module = "entity",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController" * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController"
* }, * },
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
* @EntityType( * @EntityType(
* id = "form_mode", * id = "form_mode",
* label = @Translation("Form mode"), * label = @Translation("Form mode"),
* module = "entity",
* controllers = { * controllers = {
* "list" = "Drupal\entity\EntityFormModeListController", * "list" = "Drupal\entity\EntityFormModeListController",
* "form" = { * "form" = {
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
* @EntityType( * @EntityType(
* id = "view_mode", * id = "view_mode",
* label = @Translation("View mode"), * label = @Translation("View mode"),
* module = "entity",
* controllers = { * controllers = {
* "list" = "Drupal\entity\EntityDisplayModeListController", * "list" = "Drupal\entity\EntityDisplayModeListController",
* "form" = { * "form" = {
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
* @EntityType( * @EntityType(
* id = "field_entity", * id = "field_entity",
* label = @Translation("Field"), * label = @Translation("Field"),
* module = "field",
* controllers = { * controllers = {
* "storage" = "Drupal\field\FieldStorageController" * "storage" = "Drupal\field\FieldStorageController"
* }, * },
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
* @EntityType( * @EntityType(
* id = "field_instance", * id = "field_instance",
* label = @Translation("Field instance"), * label = @Translation("Field instance"),
* module = "field",
* controllers = { * controllers = {
* "storage" = "Drupal\field\FieldInstanceStorageController" * "storage" = "Drupal\field\FieldInstanceStorageController"
* }, * },
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* @EntityType( * @EntityType(
* id = "field_ui_test_no_bundle", * id = "field_ui_test_no_bundle",
* label = @Translation("Test Field UI entity, no bundle"), * label = @Translation("Test Field UI entity, no bundle"),
* module = "field_ui_test",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Entity\DatabaseStorageController" * "storage" = "Drupal\Core\Entity\DatabaseStorageController"
* }, * },
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
* @EntityType( * @EntityType(
* id = "file", * id = "file",
* label = @Translation("File"), * label = @Translation("File"),
* module = "file",
* controllers = { * controllers = {
* "storage" = "Drupal\file\FileStorageController", * "storage" = "Drupal\file\FileStorageController",
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder" * "view_builder" = "Drupal\Core\Entity\EntityViewBuilder"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
* @EntityType( * @EntityType(
* id = "filter_format", * id = "filter_format",
* label = @Translation("Text format"), * label = @Translation("Text format"),
* module = "filter",
* controllers = { * controllers = {
* "form" = { * "form" = {
* "add" = "Drupal\filter\FilterFormatAddFormController", * "add" = "Drupal\filter\FilterFormatAddFormController",
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
* @EntityType( * @EntityType(
* id = "image_style", * id = "image_style",
* label = @Translation("Image style"), * label = @Translation("Image style"),
* module = "image",
* controllers = { * controllers = {
* "form" = { * "form" = {
* "add" = "Drupal\image\Form\ImageStyleAddForm", * "add" = "Drupal\image\Form\ImageStyleAddForm",
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
* @EntityType( * @EntityType(
* id = "language_entity", * id = "language_entity",
* label = @Translation("Language"), * label = @Translation("Language"),
* module = "language",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController",
* "list" = "Drupal\language\LanguageListController", * "list" = "Drupal\language\LanguageListController",
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
* @EntityType( * @EntityType(
* id = "menu_link", * id = "menu_link",
* label = @Translation("Menu link"), * label = @Translation("Menu link"),
* module = "menu_link",
* controllers = { * controllers = {
* "storage" = "Drupal\menu_link\MenuLinkStorageController", * "storage" = "Drupal\menu_link\MenuLinkStorageController",
* "access" = "Drupal\menu_link\MenuLinkAccessController", * "access" = "Drupal\menu_link\MenuLinkAccessController",
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
* id = "node", * id = "node",
* label = @Translation("Content"), * label = @Translation("Content"),
* bundle_label = @Translation("Content type"), * bundle_label = @Translation("Content type"),
* module = "node",
* controllers = { * controllers = {
* "storage" = "Drupal\node\NodeStorageController", * "storage" = "Drupal\node\NodeStorageController",
* "view_builder" = "Drupal\node\NodeViewBuilder", * "view_builder" = "Drupal\node\NodeViewBuilder",
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
* @EntityType( * @EntityType(
* id = "node_type", * id = "node_type",
* label = @Translation("Content type"), * label = @Translation("Content type"),
* module = "node",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController",
* "access" = "Drupal\node\NodeTypeAccessController", * "access" = "Drupal\node\NodeTypeAccessController",
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
* @EntityType( * @EntityType(
* id = "picture_mapping", * id = "picture_mapping",
* label = @Translation("Picture mapping"), * label = @Translation("Picture mapping"),
* module = "picture",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController",
* "list" = "Drupal\picture\PictureMappingListController", * "list" = "Drupal\picture\PictureMappingListController",
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
* @EntityType( * @EntityType(
* id = "rdf_mapping", * id = "rdf_mapping",
* label = @Translation("RDF mapping"), * label = @Translation("RDF mapping"),
* module = "rdf",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController" * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController"
* }, * },
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
* @EntityType( * @EntityType(
* id = "shortcut_set", * id = "shortcut_set",
* label = @Translation("Shortcut set"), * label = @Translation("Shortcut set"),
* module = "shortcut",
* controllers = { * controllers = {
* "storage" = "Drupal\shortcut\ShortcutSetStorageController", * "storage" = "Drupal\shortcut\ShortcutSetStorageController",
* "access" = "Drupal\shortcut\ShortcutSetAccessController", * "access" = "Drupal\shortcut\ShortcutSetAccessController",
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
* @EntityType( * @EntityType(
* id = "action", * id = "action",
* label = @Translation("Action"), * label = @Translation("Action"),
* module = "system",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController",
* }, * },
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
* @EntityType( * @EntityType(
* id = "date_format", * id = "date_format",
* label = @Translation("Date format"), * label = @Translation("Date format"),
* module = "system",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController",
* "access" = "Drupal\system\DateFormatAccessController", * "access" = "Drupal\system\DateFormatAccessController",
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
* @EntityType( * @EntityType(
* id = "menu", * id = "menu",
* label = @Translation("Menu"), * label = @Translation("Menu"),
* module = "system",
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController",
* "access" = "Drupal\system\MenuAccessController" * "access" = "Drupal\system\MenuAccessController"
......
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
* label = @Translation("Entity cache test"), * label = @Translation("Entity cache test"),
* controllers = { * controllers = {
* "storage" = "Drupal\Core\Entity\DatabaseStorageController", * "storage" = "Drupal\Core\Entity\DatabaseStorageController",
* }, * }
* module = "entity_cache_test_dependency"
* ) * )
*/ */
class EntityCacheTest extends Entity { class EntityCacheTest extends Entity {
......
...@@ -147,7 +147,7 @@ function entity_test_entity_bundle_info() { ...@@ -147,7 +147,7 @@ function entity_test_entity_bundle_info() {
$bundles = array(); $bundles = array();
$entity_info = entity_get_info(); $entity_info = entity_get_info();
foreach ($entity_info as $entity_type => $info) { foreach ($entity_info as $entity_type => $info) {
if ($info['module'] == 'entity_test') { if ($info['provider'] == 'entity_test') {
$bundles[$entity_type] = \Drupal::state()->get($entity_type . '.bundles') ?: array($entity_type => array('label' => 'Entity Test Bundle')); $bundles[$entity_type] = \Drupal::state()->get($entity_type . '.bundles') ?: array($entity_type => array('label' => 'Entity Test Bundle'));
} }
} }
...@@ -160,7 +160,7 @@ function entity_test_entity_bundle_info() { ...@@ -160,7 +160,7 @@ function entity_test_entity_bundle_info() {
function entity_test_entity_view_mode_info_alter(&$view_modes) { function entity_test_entity_view_mode_info_alter(&$view_modes) {
$entity_info = entity_get_info(); $entity_info = entity_get_info();
foreach ($entity_info as $entity_type => $info) { foreach ($entity_info as $entity_type => $info) {
if ($entity_info[$entity_type]['module'] == 'entity_test' && !isset($view_modes[$entity_type])) { if ($entity_info[$entity_type]['provider'] == 'entity_test' && !isset($view_modes[$entity_type])) {
$view_modes[$entity_type] = array( $view_modes[$entity_type] = array(
'full' => array( 'full' => array(
'label' => t('Full object'), 'label' => t('Full object'),
...@@ -183,7 +183,7 @@ function entity_test_entity_view_mode_info_alter(&$view_modes) { ...@@ -183,7 +183,7 @@ function entity_test_entity_view_mode_info_alter(&$view_modes) {
function entity_test_entity_form_mode_info_alter(&$form_modes) { function entity_test_entity_form_mode_info_alter(&$form_modes) {
$entity_info = entity_get_info(); $entity_info = entity_get_info();
foreach ($entity_info as $entity_type => $info) { foreach ($entity_info as $entity_type => $info) {
if ($entity_info[$entity_type]['module'] == 'entity_test') { if ($entity_info[$entity_type]['provider'] == 'entity_test') {
$form_modes[$entity_type] = array( $form_modes[$entity_type] = array(
'compact' => array( 'compact' => array(
'label' => t('Compact version'), 'label' => t('Compact version'),
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
* @EntityType( * @EntityType(
* id = "entity_test", * id = "entity_test",
* label = @Translation("Test entity"), * label = @Translation("Test entity"),
* module = "entity_test",
* controllers = { * controllers = {
* "storage" = "Drupal\entity_test\EntityTestStorageController", * "storage" = "Drupal\entity_test\EntityTestStorageController",
* "list" = "Drupal\entity_test\EntityTestListController", * "list" = "Drupal\entity_test\EntityTestListController",
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* @EntityType( * @EntityType(
* id = "entity_test_cache", * id = "entity_test_cache",
* label = @Translation("Test entity with field cache"), * label = @Translation("Test entity with field cache"),
* module = "entity_test",
* controllers = { * controllers = {
* "storage" = "Drupal\entity_test\EntityTestStorageController", * "storage" = "Drupal\entity_test\EntityTestStorageController",
* "access" = "Drupal\entity_test\EntityTestAccessController", * "access" = "Drupal\entity_test\EntityTestAccessController",
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
* @EntityType( * @EntityType(
* id = "entity_test_default_access", * id = "entity_test_default_access",
* label = @Translation("Test entity with default access"), * label = @Translation("Test entity with default access"),
* module = "entity_test",
* controllers = { * controllers = {
* "storage" = "Drupal\entity_test\EntityTestStorageController" * "storage" = "Drupal\entity_test\EntityTestStorageController"
* }, * },
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
* @EntityType( * @EntityType(
* id = "entity_test_label", * id = "entity_test_label",
* label = @Translation("Entity Test label"), * label = @Translation("Entity Test label"),
* module = "entity_test",
* controllers = { * controllers = {
* "storage" = "Drupal\entity_test\EntityTestStorageController", * "storage" = "Drupal\entity_test\EntityTestStorageController",
* "view_builder" = "Drupal\entity_test\EntityTestViewBuilder" * "view_builder" = "Drupal\entity_test\EntityTestViewBuilder"
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
* @EntityType( * @EntityType(
* id = "entity_test_label_callback", * id = "entity_test_label_callback",
* label = @Translation("Entity test label callback"), * label = @Translation("Entity test label callback"),
* module = "entity_test",
* controllers = { * controllers = {
* "storage" = "Drupal\entity_test\EntityTestStorageController" * "storage" = "Drupal\entity_test\EntityTestStorageController"
* }, * },
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* @EntityType( * @EntityType(
* id = "entity_test_mul", * id = "entity_test_mul",
* label = @Translation("Test entity - data table"), * label = @Translation("Test entity - data table"),
* module = "entity_test",
* controllers = { * controllers = {
* "storage" = "Drupal\entity_test\EntityTestStorageController", * "storage" = "Drupal\entity_test\EntityTestStorageController",
* "access" = "Drupal\entity_test\EntityTestAccessController", * "access" = "Drupal\entity_test\EntityTestAccessController",
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* @EntityType( * @EntityType(
* id = "entity_test_mulrev", * id = "entity_test_mulrev",
* label = @Translation("Test entity - revisions and data table"), * label = @Translation("Test entity - revisions and data table"),
* module = "entity_test",
* controllers = { * controllers = {
* "storage" = "Drupal\entity_test\EntityTestStorageController", * "storage" = "Drupal\entity_test\EntityTestStorageController",
* "access" = "Drupal\entity_test\EntityTestAccessController", * "access" = "Drupal\entity_test\EntityTestAccessController",
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
* @EntityType( * @EntityType(
* id = "entity_test_no_label", * id = "entity_test_no_label",
* label = @Translation("Entity Test without label"), * label = @Translation("Entity Test without label"),
* module = "entity_test",
* controllers = { * controllers = {
* "storage" = "Drupal\entity_test\EntityTestStorageController" * "storage" = "Drupal\entity_test\EntityTestStorageController"
* }, * },
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* @EntityType( * @EntityType(
* id = "entity_test_rev", * id = "entity_test_rev",
* label = @Translation("Test entity - revisions"), * label = @Translation("Test entity - revisions"),
* module = "entity_test",
* controllers = { * controllers = {
* "storage" = "Drupal\entity_test\EntityTestStorageController",