You are here

public function MigrationGroupListBuilder::getDefaultOperations in Migrate Tools 8

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

Gets this list's default operations.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for.

Return value

array The array structure is identical to the return value of self::getOperations().

Overrides ConfigEntityListBuilder::getDefaultOperations

File

src/Controller/MigrationGroupListBuilder.php, line 61
Contains Drupal\migrate_tools\Controller\MigrationGroupListBuilder.

Class

MigrationGroupListBuilder
Provides a listing of migration group entities.

Namespace

Drupal\migrate_tools\Controller

Code

public function getDefaultOperations(EntityInterface $entity) {
  $operations = parent::getDefaultOperations($entity);
  $operations['list'] = [
    'title' => $this
      ->t('List migrations'),
    'weight' => 0,
    'url' => Url::fromRoute('entity.migration.list', [
      'migration_group' => $entity
        ->id(),
    ]),
  ];
  return $operations;
}