function ViewsTestConfigUpdaterHooks::viewPresave
Implements hook_ENTITY_TYPE_presave().
Attributes
#[Hook('view_presave')]
File
-
core/
modules/ views/ tests/ modules/ views_test_config_updater/ src/ Hook/ ViewsTestConfigUpdaterHooks.php, line 29
Class
- ViewsTestConfigUpdaterHooks
- Hooks for the views_test_config_updater module.
Namespace
Drupal\views_test_config_updater\HookCode
public function viewPresave(ViewEntityInterface $view) : void {
$this->keyValueFactory
->get('views_test_config_updater')
->set('deprecations_enabled', $this->viewsConfigUpdater
->areDeprecationsEnabled());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.