diff --git a/core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php b/core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php index 7d8001b..be66b38 100644 --- a/core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php +++ b/core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php @@ -93,7 +93,7 @@ public function __construct(EntityManagerInterface $entity_manager) { * {@inheritdoc} */ public static function getSubscribedEvents() { - return static::getEntityTypeEvents() + static::getFieldStorageDefinitionEvents(); + return static::getEntityTypeEvents(); } /** @@ -155,6 +155,7 @@ public function onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeI $changes[] = static::REVISION_DATA_TABLE_REMOVAL; } + /** @var \Drupal\views\Entity\View[] $all_views */ $all_views = $this->entityManager->getStorage('view')->loadMultiple(NULL); foreach ($changes as $change) { @@ -308,6 +309,10 @@ protected function dataTableRename($all_views, $entity_type_id, $old_data_table, * All views. * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. + * @param string $new_data_table + * The new data table. + * @param string $base_table + * The base table. */ protected function dataTableAddition($all_views, EntityTypeInterface $entity_type, $new_data_table, $base_table) { /** @var \Drupal\Core\Entity\Sql\SqlContentEntityStorage $storage */