function views_post_update_limit_operator_defaults
Define default values for limit operators settings in all filters.
File
-
core/
modules/ views/ views.post_update.php, line 371
Code
function views_post_update_limit_operator_defaults(&$sandbox = NULL) {
/** @var \Drupal\views\ViewsConfigUpdater $view_config_updater */
$view_config_updater = \Drupal::classResolver(ViewsConfigUpdater::class);
\Drupal::classResolver(ConfigEntityUpdater::class)->update($sandbox, 'view', function ($view) use ($view_config_updater) {
return $view_config_updater->needsOperatorDefaultsUpdate($view);
});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.