You are here

function views_view_presave in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/views.module \views_view_presave()

Implements hook_ENTITY_TYPE_presave().

File

core/modules/views/views.module, line 830
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_view_presave(ViewEntityInterface $view) {

  /** @var \Drupal\views\ViewsConfigUpdater $config_updater */
  $config_updater = \Drupal::classResolver(ViewsConfigUpdater::class);
  $config_updater
    ->updateAll($view);
}