public function WeatherDetailedForecastController::__construct in Weather 2.0.x
Same name and namespace in other branches
- 8 src/Controller/WeatherDetailedForecastController.php \Drupal\weather\Controller\WeatherDetailedForecastController::__construct()
The controller constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Controller/ WeatherDetailedForecastController.php, line 43
Class
- WeatherDetailedForecastController
- Returns responses for Weather routes.
Namespace
Drupal\weather\ControllerCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->displayPlaceStorage = $this->entityTypeManager
->getStorage('weather_display_place');
$this->weatherPlaceStorage = $this->entityTypeManager
->getStorage('weather_place');
}