function views_post_update_views_data_argument_plugin_id

Same name and namespace in other branches
  1. 10 core/modules/views/views.post_update.php \views_post_update_views_data_argument_plugin_id()

Post update configured views for entity reference argument plugin IDs.

File

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

Code

function views_post_update_views_data_argument_plugin_id(?array &$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) : bool {
    return $view_config_updater->needsEntityArgumentUpdate($view);
  });
}

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