function views_post_update_fix_revision_id_part
Fix '-revision_id' replacement token syntax.
File
-
core/
modules/ views/ views.post_update.php, line 88
Code
function views_post_update_fix_revision_id_part(&$sandbox = NULL) : void {
/** @var \Drupal\views\ViewsConfigUpdater $view_config_updater */
$view_config_updater = \Drupal::classResolver(ViewsConfigUpdater::class);
$view_config_updater->setDeprecationsEnabled(FALSE);
\Drupal::classResolver(ConfigEntityUpdater::class)->update($sandbox, 'view', function (ViewEntityInterface $view) use ($view_config_updater) {
return $view_config_updater->needsRevisionFieldHyphenFix($view);
});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.