Commit 5271f8f0 authored by alexpott's avatar alexpott
Browse files

Issue #2456951 by chx: Impossible to enable views if entities are not in SQL: part 2

parent f76c925d
......@@ -432,7 +432,11 @@ public function mergeDefaultDisplaysOptions() {
* {@inheritdoc}
public function isInstallable() {
return (bool) \Drupal::service('views.views_data')->get($this->base_table);
$table_definition = \Drupal::service('views.views_data')->get($this->base_table);
// Check whether the base table definition exists and contains a base table
// definition. For example, taxonomy_views_data_alter() defines
// node_field_data even if it doesn't exist as a base table.
return $table_definition && isset($table_definition['table']['base']);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment