You are here

public function WeatherUserConfiguredDisplayController::__construct in Weather 2.0.x

Same name and namespace in other branches
  1. 8 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 53

Class

WeatherUserConfiguredDisplayController
Returns responses for Weather routes.

Namespace

Drupal\weather\Controller

Code

public function __construct(HelperService $weather_helper, EntityTypeManagerInterface $entity_type_manager, Renderer $renderer) {
  $this->weatherHelper = $weather_helper;
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
}