protected function ContactLink::getUrlInfo in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/contact/src/Plugin/views/field/ContactLink.php \Drupal\contact\Plugin\views\field\ContactLink::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
1 call to ContactLink::getUrlInfo()
- ContactLink::renderLink in core/
modules/ contact/ src/ Plugin/ views/ field/ ContactLink.php - Prepares the link to view a entity.
File
- core/
modules/ contact/ src/ Plugin/ views/ field/ ContactLink.php, line 37 - Contains \Drupal\contact\Plugin\views\field\ContactLink.
Class
- ContactLink
- Defines a field that links to the user contact page, if access is permitted.
Namespace
Drupal\contact\Plugin\views\fieldCode
protected function getUrlInfo(ResultRow $row) {
return Url::fromRoute('entity.user.contact_form', [
'user' => $this
->getEntity($row)
->id(),
]);
}