public DbLogController::__construct(Connection $database, ModuleHandlerInterface $module_handler, DateFormatterInterface $date_formatter, FormBuilderInterface $form_builder)
Constructs a DbLogController object.
Parameters
\Drupal\Core\Database\Connection $database: A database connection.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: A module handler.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.
File
- core/modules/dblog/src/Controller/DbLogController.php, line 82
Class
- DbLogController
- Returns responses for dblog routes.
Namespace
Drupal\dblog\Controller
Code
public function __construct(Connection $database, ModuleHandlerInterface $module_handler, DateFormatterInterface $date_formatter, FormBuilderInterface $form_builder) { $this->database = $database; $this->moduleHandler = $module_handler; $this->dateFormatter = $date_formatter; $this->formBuilder = $form_builder; $this->userStorage = $this->entityManager()->getStorage('user'); }
Please login to continue.