projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated all the contrib modules to their latest versions.
[yaffs-website]
/
web
/
modules
/
contrib
/
token
/
src
/
Controller
/
TokenCacheController.php
diff --git
a/web/modules/contrib/token/src/Controller/TokenCacheController.php
b/web/modules/contrib/token/src/Controller/TokenCacheController.php
index 39dc5b0f3e6efbc1c67870dd2cc7a6d73cf0dd9b..7f758d33557dfd3025fc579e9541345cdec14a5c 100644
(file)
--- a/
web/modules/contrib/token/src/Controller/TokenCacheController.php
+++ b/
web/modules/contrib/token/src/Controller/TokenCacheController.php
@@
-7,14
+7,14
@@
use Drupal\Core\Controller\ControllerBase;
/**
* Clears cache for tokens.
*/
/**
* Clears cache for tokens.
*/
-class TokenCacheController extends ControllerBase
{
+class TokenCacheController extends ControllerBase {
/**
* Clear caches and redirect back to the frontpage.
*/
public function flush() {
token_clear_cache();
/**
* Clear caches and redirect back to the frontpage.
*/
public function flush() {
token_clear_cache();
-
drupal_set_message(
t('Token registry caches cleared.'));
+
$this->messenger()->addMessage($this->
t('Token registry caches cleared.'));
return $this->redirect('<front>');
}
return $this->redirect('<front>');
}