function WelcomeController::access
Same name and namespace in other branches
- 11.x core/profiles/standard/src/Controller/WelcomeController.php \Drupal\standard\Controller\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\ControllerCode
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.