You are here

public function MigrationListBuilder::getDefaultOperations in Migrate Tools 8.2

Same name and namespace in other branches
  1. 8 src/Controller/MigrationListBuilder.php \Drupal\migrate_tools\Controller\MigrationListBuilder::getDefaultOperations()
  2. 8.3 src/Controller/MigrationListBuilder.php \Drupal\migrate_tools\Controller\MigrationListBuilder::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/MigrationListBuilder.php, line 185

Class

MigrationListBuilder
Provides a listing of migration entities in a given group.

Namespace

Drupal\migrate_tools\Controller

Code

public function getDefaultOperations(EntityInterface $entity) {
  $operations = parent::getDefaultOperations($entity);
  $migration_group = $entity
    ->get('migration_group');
  if (!$migration_group) {
    $migration_group = 'default';
  }

  //    $this->addGroupParameter($operations['edit']['url'], $migration_group);
  //    $this->addGroupParameter($operations['delete']['url'], $migration_group);
  return $operations;
}