diff --git a/core/modules/rest/src/Plugin/views/row/DataEntityRow.php b/core/modules/rest/src/Plugin/views/row/DataEntityRow.php index 0d5f36b..f0a15a4 100644 --- a/core/modules/rest/src/Plugin/views/row/DataEntityRow.php +++ b/core/modules/rest/src/Plugin/views/row/DataEntityRow.php @@ -119,4 +119,5 @@ public function query() { parent::query(); $this->getEntityTranslationRenderer()->query($this->view->getQuery()); } + } diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index 32e5e47..d6c644d 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -934,11 +934,12 @@ public function getBaseTables() { * Returns the entity type of the base table, if available. * * @return \Drupal\Core\Entity\EntityType|false + * The entity type of the base table, or FALSE if none exists. */ public function getBaseEntityType() { if (!isset($this->baseEntityType)) { $view_base_table = $this->storage->get('base_table'); - $views_data = Views::viewsData()->get($view_base_table); + $views_data = $this->viewsData->get($view_base_table); if (!empty($views_data['table']['entity type'])) { $entity_type_id = $views_data['table']['entity type']; $this->baseEntityType = \Drupal::entityTypeManager()->getDefinition($entity_type_id);