protected function LinkReportClose::getUrlInfo in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
- 8.5 modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
- 8.7 modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
- 8.8 modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
- 10.3.x modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
- 10.0.x modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
- 10.1.x modules/social_features/social_content_report/src/Plugin/views/field/LinkReportClose.php \Drupal\social_content_report\Plugin\views\field\LinkReportClose::getUrlInfo()
- 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\fieldCode
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(),
]);
}