function ContactPageAccess::__construct
Same name in other branches
- 9 core/modules/contact/src/Access/ContactPageAccess.php \Drupal\contact\Access\ContactPageAccess::__construct()
- 8.9.x core/modules/contact/src/Access/ContactPageAccess.php \Drupal\contact\Access\ContactPageAccess::__construct()
- 11.x core/modules/contact/src/Access/ContactPageAccess.php \Drupal\contact\Access\ContactPageAccess::__construct()
Constructs a ContactPageAccess instance.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\user\UserDataInterface $user_data: The user data service.
File
-
core/
modules/ contact/ src/ Access/ ContactPageAccess.php, line 39
Class
- ContactPageAccess
- Access check for contact_personal_page route.
Namespace
Drupal\contact\AccessCode
public function __construct(ConfigFactoryInterface $config_factory, UserDataInterface $user_data) {
$this->configFactory = $config_factory;
$this->userData = $user_data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.