You are here

protected function MigrationEditForm::addGroupParameter in Migrate Tools 8

Same name and namespace in other branches
  1. 8.5 src/Form/MigrationEditForm.php \Drupal\migrate_tools\Form\MigrationEditForm::addGroupParameter()
  2. 8.2 src/Form/MigrationEditForm.php \Drupal\migrate_tools\Form\MigrationEditForm::addGroupParameter()
  3. 8.3 src/Form/MigrationEditForm.php \Drupal\migrate_tools\Form\MigrationEditForm::addGroupParameter()
  4. 8.4 src/Form/MigrationEditForm.php \Drupal\migrate_tools\Form\MigrationEditForm::addGroupParameter()

Parameters

\Drupal\Core\Url $url: The URL associated with an operation.

$migration_group: The migration's parent group.

1 call to MigrationEditForm::addGroupParameter()
MigrationEditForm::actions in src/Form/MigrationEditForm.php
Returns the actions provided by this form.

File

src/Form/MigrationEditForm.php, line 54
Contains Drupal\migrate_tools\Form\MigrationEditForm.

Class

MigrationEditForm
Class MigrationEditForm

Namespace

Drupal\migrate_tools\Form

Code

protected function addGroupParameter(Url $url, $migration_group) {
  $route_parameters = $url
    ->getRouteParameters() + array(
    'migration_group' => $migration_group,
  );
  $url
    ->setRouteParameters($route_parameters);
}