You are here

public function ContactPageAccess::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}