public function ChecklistapiChecklistForm::__construct in Checklist API 8
Constructs an instance.
Parameters
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
File
- src/
Form/ ChecklistapiChecklistForm.php, line 43
Class
- ChecklistapiChecklistForm
- Provides a checklist form.
Namespace
Drupal\checklistapi\FormCode
public function __construct(DateFormatterInterface $date_formatter, MessengerInterface $messenger) {
$this->dateFormatter = $date_formatter;
$this->messenger = $messenger;
}