function views_post_update_field_names_for_multivalue_fields

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

Update field names for multi-value base fields.

File

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

Code

function views_post_update_field_names_for_multivalue_fields(&$sandbox = NULL) {
    
    /** @var \Drupal\views\ViewsConfigUpdater $view_config_updater */
    $view_config_updater = \Drupal::classResolver(ViewsConfigUpdater::class);
    \Drupal::classResolver(ConfigEntityUpdater::class)->update($sandbox, 'view', function ($view) use ($view_config_updater) {
        return $view_config_updater->needsMultivalueBaseFieldUpdate($view);
    });
}

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