You are here

public function WeatherDetailedForecastController::__construct in Weather 8

Same name and namespace in other branches
  1. 2.0.x 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\Controller

Code

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');
}