summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/views/src/ViewsConfigUpdater.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/views/src/ViewsConfigUpdater.php')
-rw-r--r--core/modules/views/src/ViewsConfigUpdater.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/modules/views/src/ViewsConfigUpdater.php b/core/modules/views/src/ViewsConfigUpdater.php
index 3b2709cc60c..9c5d38e10ac 100644
--- a/core/modules/views/src/ViewsConfigUpdater.php
+++ b/core/modules/views/src/ViewsConfigUpdater.php
@@ -134,6 +134,9 @@ class ViewsConfigUpdater implements ContainerInjectionInterface {
if ($this->processRememberRolesUpdate($handler, $handler_type)) {
$changed = TRUE;
}
+ if ($this->processTableCssClassUpdate($view)) {
+ $changed = TRUE;
+ }
return $changed;
});
}
@@ -335,6 +338,7 @@ class ViewsConfigUpdater implements ContainerInjectionInterface {
if (
isset($display['display_options']['style']) &&
$display['display_options']['style']['type'] === 'table' &&
+ isset($display['display_options']['style']['options']) &&
!isset($display['display_options']['style']['options']['class'])
) {
$display['display_options']['style']['options']['class'] = '';
@@ -346,6 +350,12 @@ class ViewsConfigUpdater implements ContainerInjectionInterface {
$view->set('display', $displays);
}
+ $deprecations_triggered = &$this->triggeredDeprecations['table_css_class'][$view->id()];
+ if ($this->deprecationsEnabled && $changed && !$deprecations_triggered) {
+ $deprecations_triggered = TRUE;
+ @trigger_error(sprintf('The update to add a default table CSS class for view "%s" is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Profile, module and theme provided configuration should be updated. See https://www.drupal.org/node/3499943', $view->id()), E_USER_DEPRECATED);
+ }
+
return $changed;
}