public function LogintobogganController::logintobogganDenied in LoginToboggan 8
This will return the output of the page.
1 string reference to 'LogintobogganController::logintobogganDenied'
File
- src/
Controller/ LogintobogganController.php, line 142
Class
- LogintobogganController
- Class LogintobogganController.
Namespace
Drupal\logintoboggan\ControllerCode
public function logintobogganDenied() {
$account = $this
->currentUser();
if ($account
->isAnonymous()) {
$page['#title'] = $this
->t('Access Denied / User log in');
}
else {
$page = [
'#title' => $this
->t('Access Denied'),
'#theme' => 'lt_access_denied',
];
}
return $page;
}