function ViewsHooks::viewPresave

Implements hook_ENTITY_TYPE_presave().

File

core/modules/views/src/Hook/ViewsHooks.php, line 371

Class

ViewsHooks
Hook implementations for views.

Namespace

Drupal\views\Hook

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.