protected function SupportTicketListBuilder::getDefaultOperations in Support Ticketing System 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
- modules/
support_ticket/ src/ SupportTicketListBuilder.php, line 140 - Contains \Drupal\support_ticket\SupportTicketListBuilder.
Class
- SupportTicketListBuilder
- Defines a class to build a listing of support ticket entities.
Namespace
Drupal\support_ticketCode
protected function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
$destination = $this->redirectDestination
->getAsArray();
foreach ($operations as $key => $operation) {
$operations[$key]['query'] = $destination;
}
return $operations;
}