Commit f8ec0d1a authored by alexpott's avatar alexpott

Issue #2851214 by amateescu: ViewsEntitySchemaSubscriber does a lot of...

Issue #2851214 by amateescu: ViewsEntitySchemaSubscriber does a lot of unnecessary work every time an entity type definition is updated
parent 7f37114a
......@@ -144,6 +144,11 @@ public function onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeI
$changes[] = static::REVISION_DATA_TABLE_REMOVAL;
}
// Stop here if no changes are needed.
if (empty($changes)) {
return;
}
/** @var \Drupal\views\Entity\View[] $all_views */
$all_views = $this->entityManager->getStorage('view')->loadMultiple(NULL);
......
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