protected function TransactionOperation::urlRouteParameters in Transaction 8
Gets an array of placeholders for this entity.
Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic.
Parameters
string $rel: The link relationship type, for example: canonical or edit-form.
Return value
array An array of URI placeholders.
Overrides EntityBase::urlRouteParameters
File
- src/
Entity/ TransactionOperation.php, line 134
Class
- TransactionOperation
- Transaction operations provide templates that describe transactions.
Namespace
Drupal\transaction\EntityCode
protected function urlRouteParameters($rel) {
$uri_route_parameters = parent::urlRouteParameters($rel);
// Add the transaction type ID when available.
if ($transaction_type_id = $this
->getTransactionTypeId()) {
$uri_route_parameters['transaction_type'] = $transaction_type_id;
}
return $uri_route_parameters;
}