You are here

public function WebformInvitationGenerateForm::__construct in Webform Invitation 8

Same name and namespace in other branches
  1. 2.0.x src/Form/WebformInvitationGenerateForm.php \Drupal\webform_invitation\Form\WebformInvitationGenerateForm::__construct()

Constructs a new WebformInvitationGenerateForm instance.

Parameters

\Drupal\Core\Database\Connection $database: The database connection.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/Form/WebformInvitationGenerateForm.php, line 49

Class

WebformInvitationGenerateForm
Provides a form to generate invitation codes.

Namespace

Drupal\webform_invitation\Form

Code

public function __construct(Connection $database, TimeInterface $time) {
  $this->database = $database;
  $this->time = $time;
}