You are here

protected function LinkReportClose::getUrlInfo in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
  2. 8.6 modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
  3. 8.7 modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
  4. 8.8 modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
  5. 10.3.x modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
  6. 10.0.x modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
  7. 10.1.x modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
  8. 10.2.x modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()

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 LinkBase::getUrlInfo

File

modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php, line 21

Class

LinkReportClose
Field handler to present a link to close a report.

Namespace

Drupal\social_content_report\Plugin\views\field

Code

protected function getUrlInfo(ResultRow $row) {

  /** @var \Drupal\flag\FlaggingInterface $flagging */
  $flagging = $this
    ->getEntity($row);
  return Url::fromRoute('social_content_report.close_report', [
    'flagging' => $flagging
      ->id(),
  ]);
}