You are here

protected function RevisionLinkDelete::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/RevisionLinkDelete.php, line 25
Contains \Drupal\support_ticket\Plugin\views\field\RevisionLinkDelete.

Class

RevisionLinkDelete
Field handler to present link to delete a support ticket revision.

Namespace

Drupal\support_ticket\Plugin\views\field

Code

protected function getUrlInfo(ResultRow $row) {

  /** @var \Drupal\support_ticket\SupportTicketInterface $support_ticket */
  $support_ticket = $this
    ->getEntity($row);
  return Url::fromRoute('support_ticket.revision_delete_confirm', [
    'support_ticket' => $support_ticket
      ->id(),
    'support_ticket_revision' => $support_ticket
      ->getRevisionId(),
  ]);
}