public function MigrationListBuilder::getDefaultOperations in Migrate Tools 8.3
Same name and namespace in other branches
- 8 src/Controller/MigrationListBuilder.php \Drupal\migrate_tools\Controller\MigrationListBuilder::getDefaultOperations()
- 8.2 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\ControllerCode
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;
}