function ViewsHooks::viewPresave
Same name and namespace in other branches
- 11.x core/modules/views/src/Hook/ViewsHooks.php \Drupal\views\Hook\ViewsHooks::viewPresave()
Implements hook_ENTITY_TYPE_presave().
Attributes
#[Hook('view_presave')]
File
-
core/
modules/ views/ src/ Hook/ ViewsHooks.php, line 240
Class
- ViewsHooks
- Hook implementations for views.
Namespace
Drupal\views\HookCode
public function viewPresave(ViewEntityInterface $view) : void {
/** @var \Drupal\views\ViewsConfigUpdater $config_updater */
$config_updater = \Drupal::service(ViewsConfigUpdater::class);
$config_updater->updateAll($view);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.