// Stop here if no changes are needed.
if (empty($changes)) { return;
} /** @var \Drupal\views\Entity\View[] $all_views */
$all_views =
$this->entityTypeManager->
getStorage('view'
)->
loadMultiple(NULL
);
foreach ($changes as $change) { switch ($change) { case static::BASE_TABLE_RENAME:
$this->
baseTableRename($all_views,
$entity_type->
id(),
$original->
getBaseTable(),
$entity_type->
getBaseTable());
break;
case static::DATA_TABLE_RENAME:
$this->
dataTableRename($all_views,
$entity_type->
id(),
$original->
getDataTable(),
$entity_type->
getDataTable());
break;
case static::DATA_TABLE_ADDITION:
$this->
dataTableAddition($all_views,
$entity_type,
$entity_type->
getDataTable(),
$entity_type->
getBaseTable());
break;
case static::DATA_TABLE_REMOVAL: