protected function RevisionLinkRevert::getUrlInfo in Support Ticketing System 8
Returns the URI elements of the link.
Parameters
\Drupal\views\ResultRow $row: A view result row.
Return value
\Drupal\Core\Url The URI elements of the link.
Overrides RevisionLink::getUrlInfo
File
- modules/
support_ticket/ src/ Plugin/ views/ field/ RevisionLinkRevert.php, line 25 - Contains \Drupal\support_ticket\Plugin\views\field\RevisionLinkRevert.
Class
- RevisionLinkRevert
- Field handler to present a link to revert a support ticket to a revision.
Namespace
Drupal\support_ticket\Plugin\views\fieldCode
protected function getUrlInfo(ResultRow $row) {
/** @var \Drupal\support_ticket\SupportTicketInterface $support_ticket */
$support_ticket = $this
->getEntity($row);
return Url::fromRoute('support_ticket.revision_revert_confirm', [
'support_ticket' => $support_ticket
->id(),
'support_ticket_revision' => $support_ticket
->getRevisionId(),
]);
}