You are here

public function ContactPageAccess::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 44
Contains \Drupal\contact\Access\ContactPageAccess.

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;
}