function ViewsConfigUpdater::updateAll
Same name in other branches
- 9 core/modules/views/src/ViewsConfigUpdater.php \Drupal\views\ViewsConfigUpdater::updateAll()
- 8.9.x core/modules/views/src/ViewsConfigUpdater.php \Drupal\views\ViewsConfigUpdater::updateAll()
- 11.x core/modules/views/src/ViewsConfigUpdater.php \Drupal\views\ViewsConfigUpdater::updateAll()
Performs all required updates.
Parameters
\Drupal\views\ViewEntityInterface $view: The View to update.
Return value
bool Whether the view was updated.
File
-
core/
modules/ views/ src/ ViewsConfigUpdater.php, line 138
Class
- ViewsConfigUpdater
- Provides a BC layer for modules providing old configurations.
Namespace
Drupal\viewsCode
public function updateAll(ViewEntityInterface $view) {
return $this->processDisplayHandlers($view, FALSE, function (&$handler, $handler_type, $key, $display_id) use ($view) {
$changed = FALSE;
if ($this->processResponsiveImageLazyLoadFieldHandler($handler, $handler_type, $view)) {
$changed = TRUE;
}
if ($this->processTimestampFormatterTimeDiffUpdateHandler($handler, $handler_type)) {
$changed = TRUE;
}
if ($this->processRevisionFieldHyphenFix($view)) {
$changed = TRUE;
}
if ($this->processDefaultArgumentSkipUrlUpdate($handler, $handler_type)) {
$changed = TRUE;
}
if ($this->processDefaultPagerHeadingUpdate($handler, $handler_type)) {
$changed = TRUE;
}
if ($this->processEntityArgumentUpdate($view)) {
$changed = TRUE;
}
if ($this->addLabelIfMissing($view)) {
$changed = TRUE;
}
return $changed;
});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.