function views_view_presave

Same name in other branches
  1. 8.9.x core/modules/views/views.module \views_view_presave()
  2. 10 core/modules/views/views.module \views_view_presave()
  3. 11.x core/modules/views/views.module \views_view_presave()

Implements hook_ENTITY_TYPE_presave().

File

core/modules/views/views.module, line 832

Code

function views_view_presave(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.