3 namespace Drupal\token\Controller;
5 use Drupal\Core\Controller\ControllerBase;
8 * Clears cache for tokens.
10 class TokenCacheController extends ControllerBase {
13 * Clear caches and redirect back to the frontpage.
15 public function flush() {
17 drupal_set_message(t('Token registry caches cleared.'));
18 return $this->redirect('<front>');