function ContactFormHooks::__construct

Same name and namespace in other branches
  1. 11.x core/modules/contact/src/Hook/ContactFormHooks.php \Drupal\contact\Hook\ContactFormHooks::__construct()

File

core/modules/contact/src/Hook/ContactFormHooks.php, line 19

Class

ContactFormHooks
Form hook implementations for Contact module.

Namespace

Drupal\contact\Hook

Code

public function __construct(protected readonly AccountInterface $currentUser, protected readonly UserDataInterface $userData, protected readonly ConfigFactoryInterface $configFactory) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.