diff --git a/core/lib/Drupal/Core/Entity/EntityManager.php b/core/lib/Drupal/Core/Entity/EntityManager.php index df18e29..69c45a3 100644 --- a/core/lib/Drupal/Core/Entity/EntityManager.php +++ b/core/lib/Drupal/Core/Entity/EntityManager.php @@ -192,7 +192,7 @@ public function getStorageController($entity_type) { * {@inheritdoc} */ public function getListBuilder($entity_type) { - return $this->getController($entity_type, 'list', 'getListClass'); + return $this->getController($entity_type, 'list_builder', 'getListBuilderClass'); } /** diff --git a/core/lib/Drupal/Core/Entity/EntityType.php b/core/lib/Drupal/Core/Entity/EntityType.php index 4eae0df..93f6062 100644 --- a/core/lib/Drupal/Core/Entity/EntityType.php +++ b/core/lib/Drupal/Core/Entity/EntityType.php @@ -365,23 +365,23 @@ public function hasFormClasses() { /** * {@inheritdoc} */ - public function getListClass() { - return $this->getControllerClass('list'); + public function getListBuilderClass() { + return $this->getControllerClass('list_builder'); } /** * {@inheritdoc} */ - public function setListClass($class) { - $this->controllers['list'] = $class; + public function setListBuilderClass($class) { + $this->controllers['list_builder'] = $class; return $this; } /** * {@inheritdoc} */ - public function hasListClass() { - return $this->hasControllerClass('list'); + public function hasListBuilderClass() { + return $this->hasControllerClass('list_builder'); } /** diff --git a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php index b32f645..bcc3bb7 100644 --- a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php @@ -258,7 +258,7 @@ public function hasFormClasses(); * @return string * The class for this entity type's list. */ - public function getListClass(); + public function getListBuilderClass(); /** * Sets the list class. @@ -268,7 +268,7 @@ public function getListClass(); * * @return static */ - public function setListClass($class); + public function setListBuilderClass($class); /** * Indicates if this entity type has a list class. @@ -276,7 +276,7 @@ public function setListClass($class); * @return bool * TRUE if there is a list for this entity type, FALSE otherwise. */ - public function hasListClass(); + public function hasListBuilderClass(); /** * Returns the view builder class. diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlock.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlock.php index 69f8d42..1f631b4 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlock.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlock.php @@ -22,7 +22,7 @@ * bundle_label = @Translation("Custom Block type"), * controllers = { * "access" = "Drupal\custom_block\CustomBlockAccessController", - * "list" = "Drupal\custom_block\CustomBlockListBuilder", + * "list_builder" = "Drupal\custom_block\CustomBlockListBuilder", * "view_builder" = "Drupal\custom_block\CustomBlockViewBuilder", * "form" = { * "add" = "Drupal\custom_block\CustomBlockFormController", diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php index 40b9cef..c0dbaef 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php @@ -24,7 +24,7 @@ * "edit" = "Drupal\custom_block\CustomBlockTypeFormController", * "delete" = "Drupal\custom_block\Form\CustomBlockTypeDeleteForm" * }, - * "list" = "Drupal\custom_block\CustomBlockTypeListBuilder" + * "list_builder" = "Drupal\custom_block\CustomBlockTypeListBuilder" * }, * admin_permission = "administer blocks", * config_prefix = "type", diff --git a/core/modules/block/lib/Drupal/block/Entity/Block.php b/core/modules/block/lib/Drupal/block/Entity/Block.php index 63cf12e..cc0a6a3 100644 --- a/core/modules/block/lib/Drupal/block/Entity/Block.php +++ b/core/modules/block/lib/Drupal/block/Entity/Block.php @@ -21,7 +21,7 @@ * controllers = { * "access" = "Drupal\block\BlockAccessController", * "view_builder" = "Drupal\block\BlockViewBuilder", - * "list" = "Drupal\block\BlockListBuilder", + * "list_builder" = "Drupal\block\BlockListBuilder", * "form" = { * "default" = "Drupal\block\BlockFormController", * "delete" = "Drupal\block\Form\BlockDeleteForm" diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php index 51cca63..53cd76d 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigQueryTest.php @@ -15,7 +15,7 @@ * label = @Translation("Test configuration for query"), * controllers = { * "storage" = "Drupal\config_test\ConfigTestStorageController", - * "list" = "Drupal\Core\Config\Entity\ConfigEntityListBuilder", + * "list_builder" = "Drupal\Core\Config\Entity\ConfigEntityListBuilder", * "form" = { * "default" = "Drupal\config_test\ConfigTestFormController" * } diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php index 40b6319..48bc83e 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php @@ -18,7 +18,7 @@ * label = @Translation("Test configuration"), * controllers = { * "storage" = "Drupal\config_test\ConfigTestStorageController", - * "list" = "Drupal\config_test\ConfigTestListBuilder", + * "list_builder" = "Drupal\config_test\ConfigTestListBuilder", * "form" = { * "default" = "Drupal\config_test\ConfigTestFormController", * "delete" = "Drupal\config_test\Form\ConfigTestDeleteForm" diff --git a/core/modules/contact/lib/Drupal/contact/Entity/Category.php b/core/modules/contact/lib/Drupal/contact/Entity/Category.php index 6657374..a02e48f 100644 --- a/core/modules/contact/lib/Drupal/contact/Entity/Category.php +++ b/core/modules/contact/lib/Drupal/contact/Entity/Category.php @@ -19,7 +19,7 @@ * label = @Translation("Contact category"), * controllers = { * "access" = "Drupal\contact\CategoryAccessController", - * "list" = "Drupal\contact\CategoryListBuilder", + * "list_builder" = "Drupal\contact\CategoryListBuilder", * "form" = { * "add" = "Drupal\contact\CategoryFormController", * "edit" = "Drupal\contact\CategoryFormController", diff --git a/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php index 2c1f435..4e58485 100644 --- a/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityFormMode.php @@ -32,7 +32,7 @@ * label = @Translation("Form mode"), * controllers = { * "storage" = "Drupal\entity\EntityDisplayModeStorageController", - * "list" = "Drupal\entity\EntityFormModeListBuilder", + * "list_builder" = "Drupal\entity\EntityFormModeListBuilder", * "form" = { * "add" = "Drupal\entity\Form\EntityFormModeAddForm", * "edit" = "Drupal\entity\Form\EntityDisplayModeEditForm", diff --git a/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php b/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php index fb77fbd..df31790 100644 --- a/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php +++ b/core/modules/entity/lib/Drupal/entity/Entity/EntityViewMode.php @@ -32,7 +32,7 @@ * id = "view_mode", * label = @Translation("View mode"), * controllers = { - * "list" = "Drupal\entity\EntityDisplayModeListBuilder", + * "list_builder" = "Drupal\entity\EntityDisplayModeListBuilder", * "form" = { * "add" = "Drupal\entity\Form\EntityDisplayModeAddForm", * "edit" = "Drupal\entity\Form\EntityDisplayModeEditForm", diff --git a/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php b/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php index 87b9caa..b7af916 100644 --- a/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php +++ b/core/modules/filter/lib/Drupal/filter/Entity/FilterFormat.php @@ -27,7 +27,7 @@ * "edit" = "Drupal\filter\FilterFormatEditFormController", * "disable" = "Drupal\filter\Form\FilterDisableForm" * }, - * "list" = "Drupal\filter\FilterFormatListBuilder", + * "list_builder" = "Drupal\filter\FilterFormatListBuilder", * "access" = "Drupal\filter\FilterFormatAccessController", * }, * config_prefix = "format", diff --git a/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php b/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php index 59a8b5a..07d8b53 100644 --- a/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php +++ b/core/modules/image/lib/Drupal/image/Entity/ImageStyle.php @@ -30,7 +30,7 @@ * "delete" = "Drupal\image\Form\ImageStyleDeleteForm", * "flush" = "Drupal\image\Form\ImageStyleFlushForm" * }, - * "list" = "Drupal\image\ImageStyleListBuilder", + * "list_builder" = "Drupal\image\ImageStyleListBuilder", * }, * admin_permission = "administer image styles", * config_prefix = "style", diff --git a/core/modules/language/lib/Drupal/language/Entity/Language.php b/core/modules/language/lib/Drupal/language/Entity/Language.php index 499e502..79267af 100644 --- a/core/modules/language/lib/Drupal/language/Entity/Language.php +++ b/core/modules/language/lib/Drupal/language/Entity/Language.php @@ -19,7 +19,7 @@ * id = "language_entity", * label = @Translation("Language"), * controllers = { - * "list" = "Drupal\language\LanguageListBuilder", + * "list_builder" = "Drupal\language\LanguageListBuilder", * "access" = "Drupal\language\LanguageAccessController", * "form" = { * "add" = "Drupal\language\Form\LanguageAddForm", diff --git a/core/modules/migrate/lib/Drupal/migrate/Entity/Migration.php b/core/modules/migrate/lib/Drupal/migrate/Entity/Migration.php index 2b484a9..c17a9fe 100644 --- a/core/modules/migrate/lib/Drupal/migrate/Entity/Migration.php +++ b/core/modules/migrate/lib/Drupal/migrate/Entity/Migration.php @@ -22,7 +22,7 @@ * label = @Translation("Migration"), * module = "migrate", * controllers = { - * "list" = "Drupal\Core\Config\Entity\DraggableListBuilder", + * "list_builder" = "Drupal\Core\Config\Entity\DraggableListBuilder", * "form" = { * "add" = "Drupal\Core\Entity\EntityFormController", * "edit" = "Drupal\Core\Entity\EntityFormController", diff --git a/core/modules/node/lib/Drupal/node/Entity/Node.php b/core/modules/node/lib/Drupal/node/Entity/Node.php index c7a9e07..2374e15 100644 --- a/core/modules/node/lib/Drupal/node/Entity/Node.php +++ b/core/modules/node/lib/Drupal/node/Entity/Node.php @@ -31,7 +31,7 @@ * "delete" = "Drupal\node\Form\NodeDeleteForm", * "edit" = "Drupal\node\NodeFormController" * }, - * "list" = "Drupal\node\NodeListBuilder", + * "list_builder" = "Drupal\node\NodeListBuilder", * "translation" = "Drupal\node\NodeTranslationController" * }, * base_table = "node", diff --git a/core/modules/node/lib/Drupal/node/Entity/NodeType.php b/core/modules/node/lib/Drupal/node/Entity/NodeType.php index 7b48ebd..262150f 100644 --- a/core/modules/node/lib/Drupal/node/Entity/NodeType.php +++ b/core/modules/node/lib/Drupal/node/Entity/NodeType.php @@ -26,7 +26,7 @@ * "edit" = "Drupal\node\NodeTypeFormController", * "delete" = "Drupal\node\Form\NodeTypeDeleteConfirm" * }, - * "list" = "Drupal\node\NodeTypeListBuilder", + * "list_builder" = "Drupal\node\NodeTypeListBuilder", * }, * admin_permission = "administer content types", * config_prefix = "type", diff --git a/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php b/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php index f712950..c9872ed 100644 --- a/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php +++ b/core/modules/picture/lib/Drupal/picture/Entity/PictureMapping.php @@ -17,7 +17,7 @@ * id = "picture_mapping", * label = @Translation("Picture mapping"), * controllers = { - * "list" = "Drupal\picture\PictureMappingListBuilder", + * "list_builder" = "Drupal\picture\PictureMappingListBuilder", * "form" = { * "edit" = "Drupal\picture\PictureMappingFormController", * "add" = "Drupal\picture\PictureMappingFormController", diff --git a/core/modules/search/lib/Drupal/search/Entity/SearchPage.php b/core/modules/search/lib/Drupal/search/Entity/SearchPage.php index cac0890..9d4dba3 100644 --- a/core/modules/search/lib/Drupal/search/Entity/SearchPage.php +++ b/core/modules/search/lib/Drupal/search/Entity/SearchPage.php @@ -24,7 +24,7 @@ * controllers = { * "access" = "Drupal\search\SearchPageAccessController", * "storage" = "Drupal\Core\Config\Entity\ConfigStorageController", - * "list" = "Drupal\search\SearchPageListBuilder", + * "list_builder" = "Drupal\search\SearchPageListBuilder", * "form" = { * "add" = "Drupal\search\Form\SearchPageAddForm", * "edit" = "Drupal\search\Form\SearchPageEditForm", diff --git a/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php index f636cf6..dcc86a9 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/Entity/ShortcutSet.php @@ -21,7 +21,7 @@ * controllers = { * "storage" = "Drupal\shortcut\ShortcutSetStorageController", * "access" = "Drupal\shortcut\ShortcutSetAccessController", - * "list" = "Drupal\shortcut\ShortcutSetListBuilder", + * "list_builder" = "Drupal\shortcut\ShortcutSetListBuilder", * "form" = { * "default" = "Drupal\shortcut\ShortcutSetFormController", * "add" = "Drupal\shortcut\ShortcutSetFormController", diff --git a/core/modules/system/lib/Drupal/system/Entity/DateFormat.php b/core/modules/system/lib/Drupal/system/Entity/DateFormat.php index b1294ec..05da902 100644 --- a/core/modules/system/lib/Drupal/system/Entity/DateFormat.php +++ b/core/modules/system/lib/Drupal/system/Entity/DateFormat.php @@ -20,7 +20,7 @@ * label = @Translation("Date format"), * controllers = { * "access" = "Drupal\system\DateFormatAccessController", - * "list" = "Drupal\system\DateFormatListBuilder", + * "list_builder" = "Drupal\system\DateFormatListBuilder", * "form" = { * "add" = "Drupal\system\Form\DateFormatAddForm", * "edit" = "Drupal\system\Form\DateFormatEditForm", diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php index db7682e..357b77e 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php @@ -22,7 +22,7 @@ * id = "entity_test", * label = @Translation("Test entity"), * controllers = { - * "list" = "Drupal\entity_test\EntityTestListBuilder", + * "list_builder" = "Drupal\entity_test\EntityTestListBuilder", * "view_builder" = "Drupal\entity_test\EntityTestViewBuilder", * "access" = "Drupal\entity_test\EntityTestAccessController", * "form" = { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php index a425745..46e7fc1 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Vocabulary.php @@ -20,7 +20,7 @@ * label = @Translation("Taxonomy vocabulary"), * controllers = { * "storage" = "Drupal\taxonomy\VocabularyStorageController", - * "list" = "Drupal\taxonomy\VocabularyListBuilder", + * "list_builder" = "Drupal\taxonomy\VocabularyListBuilder", * "form" = { * "default" = "Drupal\taxonomy\VocabularyFormController", * "reset" = "Drupal\taxonomy\Form\VocabularyResetForm", diff --git a/core/modules/user/lib/Drupal/user/Entity/Role.php b/core/modules/user/lib/Drupal/user/Entity/Role.php index ba94a4e..019f538 100644 --- a/core/modules/user/lib/Drupal/user/Entity/Role.php +++ b/core/modules/user/lib/Drupal/user/Entity/Role.php @@ -21,7 +21,7 @@ * controllers = { * "storage" = "Drupal\user\RoleStorageController", * "access" = "Drupal\user\RoleAccessController", - * "list" = "Drupal\user\RoleListBuilder", + * "list_builder" = "Drupal\user\RoleListBuilder", * "form" = { * "default" = "Drupal\user\RoleFormController", * "delete" = "Drupal\user\Form\UserRoleDelete" diff --git a/core/modules/user/lib/Drupal/user/Entity/User.php b/core/modules/user/lib/Drupal/user/Entity/User.php index 6c805cc..ac67fa9 100644 --- a/core/modules/user/lib/Drupal/user/Entity/User.php +++ b/core/modules/user/lib/Drupal/user/Entity/User.php @@ -23,7 +23,7 @@ * controllers = { * "storage" = "Drupal\user\UserStorageController", * "access" = "Drupal\user\UserAccessController", - * "list" = "Drupal\user\UserListBuilder", + * "list_builder" = "Drupal\user\UserListBuilder", * "view_builder" = "Drupal\Core\Entity\EntityViewBuilder", * "form" = { * "default" = "Drupal\user\ProfileFormController", diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php index 7b3f76c..4414904 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php @@ -284,7 +284,7 @@ public function testGetListBuilder() { $class = $this->getTestControllerClass(); $entity = $this->getMock('Drupal\Core\Entity\EntityTypeInterface'); $entity->expects($this->once()) - ->method('getListClass') + ->method('getListBuilderClass') ->will($this->returnValue($class)); $this->setUpEntityManager(array('test_entity_type' => $entity)); diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php index 0feb65d..c2c5b29 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php @@ -116,16 +116,16 @@ public function testGetStorageClass() { } /** - * Tests the getListClass() method. + * Tests the getListBuilderClass() method. */ - public function testGetListClass() { + public function testGetListBuilderClass() { $controller = $this->getTestControllerClass(); $entity_type = $this->setUpEntityType(array( 'controllers' => array( 'list' => $controller, ), )); - $this->assertSame($controller, $entity_type->getListClass()); + $this->assertSame($controller, $entity_type->getListBuilderClass()); } /**