You are here

public function TrainingForm::__construct in Opigno statistics 3.x

Same name and namespace in other branches
  1. 8 src/Form/TrainingForm.php \Drupal\opigno_statistics\Form\TrainingForm::__construct()

TrainingForm constructor.

Parameters

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

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

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

File

src/Form/TrainingForm.php, line 57

Class

TrainingForm
Implements the training statistics page.

Namespace

Drupal\opigno_statistics\Form

Code

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