public function WeatherUserConfiguredDisplayController::__construct in Weather 8
Same name and namespace in other branches
- 2.0.x src/Controller/WeatherUserConfiguredDisplayController.php \Drupal\weather\Controller\WeatherUserConfiguredDisplayController::__construct()
The controller constructor.
Parameters
\Drupal\weather\Service\HelperService $weather_helper: The weather.helper service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity.type_manager service.
\Drupal\Core\Render\Renderer $renderer: The renderer service.
File
- src/
Controller/ WeatherUserConfiguredDisplayController.php, line 55
Class
- WeatherUserConfiguredDisplayController
- Returns responses for Weather routes.
Namespace
Drupal\weather\ControllerCode
public function __construct(HelperService $weather_helper, EntityTypeManagerInterface $entity_type_manager, Renderer $renderer) {
$this->weatherHelper = $weather_helper;
$this->entityTypeManager = $entity_type_manager;
$this->renderer = $renderer;
}