function UserListBuilder::getOperations
Same name in other branches
- 8.9.x core/modules/user/src/UserListBuilder.php \Drupal\user\UserListBuilder::getOperations()
- 10 core/modules/user/src/UserListBuilder.php \Drupal\user\UserListBuilder::getOperations()
- 11.x core/modules/user/src/UserListBuilder.php \Drupal\user\UserListBuilder::getOperations()
Overrides EntityListBuilder::getOperations
File
-
core/
modules/ user/ src/ UserListBuilder.php, line 158
Class
- UserListBuilder
- Defines a class to build a listing of user entities.
Namespace
Drupal\userCode
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
if (isset($operations['edit'])) {
$destination = $this->redirectDestination
->getAsArray();
$operations['edit']['query'] = $destination;
}
return $operations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.