public function WorkflowTransitionListBuilder::getDefaultOperations in Workflow 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/
WorkflowTransitionListBuilder.php, line 217
Class
- WorkflowTransitionListBuilder
- Defines a class to build a draggable listing of Workflow State entities.
Namespace
Drupal\workflowCode
public function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
if (isset($operations['edit'])) {
$destination = \Drupal::destination()
->getAsArray();
$operations['edit']['query'] = $destination;
}
return $operations;
}