public function EditionsController::__construct in Simplenews Scheduler 2.0.x
Same name and namespace in other branches
- 8 src/Controller/EditionsController.php \Drupal\simplenews_scheduler\Controller\EditionsController::__construct()
Creates the EditionsController object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Drupal\Core\Database\Connection $database: The database connection.
File
- src/
Controller/ EditionsController.php, line 52 - Contains \Drupal\simplenews_scheduler\Controller\EditionsController.
Class
- EditionsController
- Default controller for the simplenews_scheduler module.
Namespace
Drupal\simplenews_scheduler\ControllerCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountProxyInterface $current_user, Connection $database) {
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $current_user;
$this->database = $database;
}