1061a1062,1111 > diff --git a/core/modules/views/views.post_update.php b/core/modules/views/views.post_update.php > index e82b6c8..5f5433a 100644 > --- a/core/modules/views/views.post_update.php > +++ b/core/modules/views/views.post_update.php > @@ -205,3 +205,45 @@ function views_post_update_serializer_dependencies() { > /** > * @} End of "addtogroup updates-8.2.x". > */ > + > +/** > + * @addtogroup updates-8.3.x > + * @{ > + */ > + > +/** > + * Change the button label on views exposed forms from 'Apply' to 'Filter'. > + */ > +function views_post_update_exposed_form_submit_button_label_filter() { > + $config_factory = \Drupal::configFactory(); > + > + $core_admin_views = []; > + > + foreach ($config_factory->listAll('views.view.') as $view_config_name) { > + $view = $config_factory->get($view_config_name); > + if ($view->get('_core')) { > + foreach ($view->get('display') as $display_id => $display) { > + if (!empty($display['display_options']['path']) && substr($display['display_options']['path'], 0, 6) === 'admin/') { > + $core_admin_views[] = $view_config_name; > + } > + } > + } > + } > + > + foreach ($core_admin_views as $view_config_name) { > + $view = $config_factory->getEditable($view_config_name); > + foreach ($view->get('display') as $display_id => $display) { > + if (!empty($display['display_options']['exposed_form']['options']['submit_button'])) { > + if ($display['display_options']['exposed_form']['options']['submit_button'] === 'Apply') { > + $display['display_options']['exposed_form']['options']['submit_button'] = 'Filter'; > + $view->set("display.$display_id", $display); > + $view->save(TRUE); > + } > + } > + } > + } > +} > + > +/** > + * @} End of "addtogroup updates-8.3.x". > + */