protected function ProfileListBuilder::getDefaultOperations in Profile 2 8
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 EntityListBuilder::getDefaultOperations
File
- src/
ProfileListBuilder.php, line 144 - Contains \Drupal\profile\ProfileListController.
Class
- ProfileListBuilder
- List controller for profiles.
Namespace
Drupal\profileCode
protected function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
$destination = drupal_get_destination();
foreach ($operations as $key => $operation) {
$operations[$key]['query'] = $destination;
}
return $operations;
}