protected function AuthmapDeleteLink::getUrlInfo in SAML Authentication 8.3
Same name and namespace in other branches
- 4.x src/Plugin/views/field/AuthmapDeleteLink.php \Drupal\samlauth\Plugin\views\field\AuthmapDeleteLink::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 AuthmapDeleteLink::getUrlInfo()
- AuthmapDeleteLink::renderLink in src/
Plugin/ views/ field/ AuthmapDeleteLink.php - Prepares the link to view a entity.
File
- src/
Plugin/ views/ field/ AuthmapDeleteLink.php, line 68
Class
- AuthmapDeleteLink
- Field handler to present a link to delete an authmap entry.
Namespace
Drupal\samlauth\Plugin\views\fieldCode
protected function getUrlInfo(ResultRow $row) {
// We can get away with just passing the UID as an argument, because the
// combination of uid+provider is unique. In the future we might have
// storage where multiple authnames from the same provider could be linked
// to 1 account; if that happens, we won't want to add the authname into
// the URL directly but Crypt::hmacBase64() it so that it isn't present in
// referer headers. (The confirm form will need to recalculate the hash(es)
// in order to check which authname we're talking about - but assuming the
// number of authnames per UID is low, that won't be too expensive.)
return Url::fromRoute('samlauth.authmap_delete_form', [
'uid' => $row->authmap_uid,
]);
}