public function Hits::__construct in Visitors 8.2
Constructs a Hits object.
Parameters
\Drupal\Core\Datetime\DateFormatterInterface $date: The date service.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.
File
- src/
Controller/ Report/ Hits.php, line 53 - Contains Drupal\visitors\Controller\Report\Hits.
Class
Namespace
Drupal\visitors\Controller\ReportCode
public function __construct(DateFormatterInterface $date_formatter, FormBuilderInterface $form_builder) {
$this->date = $date_formatter;
$this->formBuilder = $form_builder;
}