function WelcomeController::access

Controls access to the welcome page.

1 string reference to 'WelcomeController::access'
standard.routing.yml in core/profiles/standard/standard.routing.yml
core/profiles/standard/standard.routing.yml

File

core/profiles/standard/src/Controller/WelcomeController.php, line 17

Class

WelcomeController
Controller for the Standard profile welcome page.

Namespace

Drupal\standard\Controller

Code

public function access(AccountInterface $account) : AccessResult {
  // Older sites will not have this install-time flag set.
  return AccessResult::allowedIf((bool) \Drupal::state()->get('standard.show_welcome', FALSE));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.