Same name and namespace in other branches
  1. 8.9.x core/modules/contact/src/Access/ContactPageAccess.php \Drupal\contact\Access\ContactPageAccess::__construct()
  2. 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\Access

Code

public function __construct(ConfigFactoryInterface $config_factory, UserDataInterface $user_data) {
  $this->configFactory = $config_factory;
  $this->userData = $user_data;
}