diff --git a/core/includes/entity.inc b/core/includes/entity.inc index 3ed6e4a..0177326 100644 --- a/core/includes/entity.inc +++ b/core/includes/entity.inc @@ -435,7 +435,7 @@ function entity_page_label(EntityInterface $entity, $langcode = NULL) { * @return \Drupal\Core\Entity\EntityAccessControllerInterface * An entity access controller instance. * - * @deprecated Use \Drupal\Core\Entity\EntityManager::getViewBuilder(). + * @deprecated Use \Drupal\Core\Entity\EntityManager::getAccessController(). */ function entity_access_controller($entity_type) { return \Drupal::entityManager() diff --git a/core/modules/comment/lib/Drupal/comment/CommentViewBuilder.php b/core/modules/comment/lib/Drupal/comment/CommentViewBuilder.php index cd078da..9a8260e 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentViewBuilder.php +++ b/core/modules/comment/lib/Drupal/comment/CommentViewBuilder.php @@ -84,8 +84,6 @@ public function __construct($entity_type, EntityManager $entity_manager, FieldIn * Thrown when a comment is attached to an entity that no longer exists. */ public function buildContent(array $entities, array $displays, $view_mode, $langcode = NULL) { - // In addition to modifying the content key on entities, this implementation - // will also set the node key which all comments carry. $return = array(); if (empty($entities)) { return $return; diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRender.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRender.php deleted file mode 100644 index 138b50d..0000000 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRender.php +++ /dev/null @@ -1,45 +0,0 @@ -entityManager->getDefinitions() as $entity_type => $entity_info) { // Just add support for entity types which have a views integration. - if (isset($entity_info['base_table']) && $this->viewsData->get($entity_info['base_table']) && $this->entityManager->hasController($entity_type, 'render')) { + if (isset($entity_info['base_table']) && $this->viewsData->get($entity_info['base_table']) && $this->entityManager->hasController($entity_type, 'view_builder')) { $this->derivatives[$entity_type] = array( 'id' => 'entity:' . $entity_type, 'provider' => 'views', diff --git a/core/tests/Drupal/Tests/Core/Entity/Controller/EntityViewControllerTest.php b/core/tests/Drupal/Tests/Core/Entity/Controller/EntityViewControllerTest.php index e727ad8..59a60fe 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Controller/EntityViewControllerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Controller/EntityViewControllerTest.php @@ -49,7 +49,7 @@ public function testView() { ->will($this->returnValue($render_controller)); // Mock an 'entity_test' entity. - $entity = $this->getMockBuilder('Drupal\entity_test\Entity\EntityTestRender') + $entity = $this->getMockBuilder('Drupal\entity_test\Entity\EntityTest') ->disableOriginalConstructor() ->getMock();