private function RedirectSubscriber::addStatusLink in Data Policy 8
Add the status link.
1 call to RedirectSubscriber::addStatusLink()
- RedirectSubscriber::checkForRedirection in src/
RedirectSubscriber.php - This method is called when the KernelEvents::REQUEST event is dispatched.
File
- src/
RedirectSubscriber.php, line 313
Class
- RedirectSubscriber
- Class RedirectSubscriber.
Namespace
Drupal\data_policyCode
private function addStatusLink() {
if ($this->routeMatch
->getRouteName() !== 'data_policy.data_policy.agreement') {
$link = Link::createFromRoute($this
->t('here'), 'data_policy.data_policy.agreement');
$this->messenger
->addStatus($this
->t('We published a new version of the data policy. You can review the data policy @url.', [
'@url' => $link
->toString(),
]));
}
}