You are here

public function AgreementForm::__construct in Agreement 8.2

Same name in this branch
  1. 8.2 src/Form/AgreementForm.php \Drupal\agreement\Form\AgreementForm::__construct()
  2. 8.2 src/Entity/AgreementForm.php \Drupal\agreement\Entity\AgreementForm::__construct()
Same name and namespace in other branches
  1. 3.0.x src/Form/AgreementForm.php \Drupal\agreement\Form\AgreementForm::__construct()

Initialize method.

Parameters

\Drupal\agreement\AgreementHandlerInterface $agreementHandler: The agreement handler interface.

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The current route match.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.

\Drupal\Core\Session\AccountProxyInterface $account: The current user account.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\Core\Mail\MailManagerInterface $mailManager: The mail service.

File

src/Form/AgreementForm.php, line 87

Class

AgreementForm
Agreement page form.

Namespace

Drupal\agreement\Form

Code

public function __construct(AgreementHandlerInterface $agreementHandler, RouteMatchInterface $routeMatch, LanguageManagerInterface $languageManager, AccountProxyInterface $account, MessengerInterface $messenger, MailManagerInterface $mailManager) {
  $this->agreementHandler = $agreementHandler;
  $this->routeMatch = $routeMatch;
  $this->languageManager = $languageManager;
  $this->account = $account;
  $this->messenger = $messenger;
  $this->mailManager = $mailManager;
}