function views_post_update_revision_metadata_fields

Fix table names for revision metadata fields.

See also

https://www.drupal.org/node/2831499

File

core/modules/views/views.post_update.php, line 214

Code

function views_post_update_revision_metadata_fields() {
    // The table names are fixed automatically in
    // \Drupal\views\Entity\View::preSave(), so we just need to re-save all views.
    $views = View::loadMultiple();
    array_walk($views, function (View $view) {
        $view->save();
    });
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.