public function ContactPageAccess::__construct in Drupal 8
Same name and namespace in other branches
- 9 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;
}