diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php index 2477885..d294ab9 100644 --- a/core/modules/views/src/EntityViewsData.php +++ b/core/modules/views/src/EntityViewsData.php @@ -147,6 +147,15 @@ public function getViewsData() { ); } } + if ($this->entityManager->hasHandler($this->entityType->id(), 'list_builder')) { + $data[$base_table]['operations'] = array( + 'field' => array( + 'title' => $this->t('Operations links'), + 'help' => $this->t('Provides links to perform entity operations.'), + 'id' => 'entity_operations', + ), + ); + } // Setup relations to the revisions/property data. if ($data_table) { diff --git a/core/modules/views/views.views.inc b/core/modules/views/views.views.inc index 8201277..34167b0 100644 --- a/core/modules/views/views.views.inc +++ b/core/modules/views/views.views.inc @@ -137,16 +137,6 @@ function views_views_data() { ), ); } - - if ($entity_type->getBaseTable() && \Drupal::entityManager()->hasHandler($entity_type_id, 'list_builder')) { - $data[$entity_type->getBaseTable()]['operations'] = array( - 'field' => array( - 'title' => t('Operations links'), - 'help' => t('Provides links to perform entity operations.'), - 'id' => 'entity_operations', - ), - ); - } } // Registers an action bulk form per entity.