You are here

function views_post_update_entity_link_url in Drupal 8

Add additional settings to the entity link field and convert node_path usage to entity_link.

File

core/modules/views/views.post_update.php, line 227
Post update functions for Views.

Code

function views_post_update_entity_link_url(&$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
      ->needsEntityLinkUrlUpdate($view);
  });
}