function views_view_presave in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/views.module \views_view_presave()
Implements hook_ENTITY_TYPE_presave().
File
- core/
modules/ views/ views.module, line 850 - 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);
}