public function TransactionTypeListBuilder::getDefaultOperations in Transaction 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 ConfigEntityListBuilder::getDefaultOperations
File
- src/
TransactionTypeListBuilder.php, line 183
Class
- TransactionTypeListBuilder
- Provides a entity list page for transaction types.
Namespace
Drupal\transactionCode
public function getDefaultOperations(EntityInterface $entity) {
return [
'operations' => [
'title' => $this
->t('Transaction operations'),
'weight' => 50,
'url' => Url::fromRoute('entity.transaction_operation.collection', [
'transaction_type' => $entity
->id(),
]),
],
] + parent::getDefaultOperations($entity);
}