You are here

public static function PathautoBulkUpdateForm::batchProcess in Pathauto 8

Common batch processing callback for all operations.

Required to load our include the proper batch file.

File

src/Form/PathautoBulkUpdateForm.php, line 155

Class

PathautoBulkUpdateForm
Configure file system settings for this site.

Namespace

Drupal\pathauto\Form

Code

public static function batchProcess($id, $action, &$context) {

  /** @var \Drupal\pathauto\AliasTypeBatchUpdateInterface $alias_type */
  $alias_type = \Drupal::service('plugin.manager.alias_type')
    ->createInstance($id);
  $alias_type
    ->batchUpdate($action, $context);
}