You are here

public function LogintobogganController::logintobogganDenied in LoginToboggan 8

This will return the output of the page.

1 string reference to 'LogintobogganController::logintobogganDenied'
logintoboggan.routing.yml in ./logintoboggan.routing.yml
logintoboggan.routing.yml

File

src/Controller/LogintobogganController.php, line 142

Class

LogintobogganController
Class LogintobogganController.

Namespace

Drupal\logintoboggan\Controller

Code

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;
}