diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php index d294ab9..1a4e05e 100644 --- a/core/modules/views/src/EntityViewsData.php +++ b/core/modules/views/src/EntityViewsData.php @@ -147,7 +147,7 @@ public function getViewsData() { ); } } - if ($this->entityManager->hasHandler($this->entityType->id(), 'list_builder')) { + if ($this->entityType->hasListBuilderClass()) { $data[$base_table]['operations'] = array( 'field' => array( 'title' => $this->t('Operations links'), diff --git a/core/modules/views/src/Plugin/views/field/EntityOperations.php b/core/modules/views/src/Plugin/views/field/EntityOperations.php index 332ee24..983ced5 100644 --- a/core/modules/views/src/Plugin/views/field/EntityOperations.php +++ b/core/modules/views/src/Plugin/views/field/EntityOperations.php @@ -113,6 +113,7 @@ public function render(ResultRow $values) { * {@inheritdoc} */ public function query() { + // There is nothing to ensure or add for this handler. } } diff --git a/core/modules/views/src/Tests/Plugin/views/field/EntityOperationsUnitTest.php b/core/modules/views/src/Tests/Plugin/views/field/EntityOperationsUnitTest.php index 81ec65a..2d3a606 100644 --- a/core/modules/views/src/Tests/Plugin/views/field/EntityOperationsUnitTest.php +++ b/core/modules/views/src/Tests/Plugin/views/field/EntityOperationsUnitTest.php @@ -12,6 +12,7 @@ /** * @coversDefaultClass \Drupal\views\Plugin\views\field\EntityOperations + * @group Views */ class EntityOperationsUnitTest extends UnitTestCase { @@ -31,17 +32,6 @@ class EntityOperationsUnitTest extends UnitTestCase { /** * {@inheritdoc} - */ - public static function getInfo() { - return array( - 'description' => '', - 'name' => '\Drupal\views\Plugin\views\field\EntityOperations', - 'group' => 'Views Plugins', - ); - } - - /** - * {@inheritdoc} * * @covers ::__construct */