You are here

public function WeatherSystemDisplayBlock::__construct in Weather 2.0.x

Same name in this branch
  1. 2.0.x src/Plugin/Derivative/WeatherSystemDisplayBlock.php \Drupal\weather\Plugin\Derivative\WeatherSystemDisplayBlock::__construct()
  2. 2.0.x src/Plugin/Block/WeatherSystemDisplayBlock.php \Drupal\weather\Plugin\Block\WeatherSystemDisplayBlock::__construct()
Same name and namespace in other branches
  1. 8 src/Plugin/Derivative/WeatherSystemDisplayBlock.php \Drupal\weather\Plugin\Derivative\WeatherSystemDisplayBlock::__construct()

Constructs new WeatherSystemDisplayBlock.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $weatherDisplayStorage: The weather displays storage.

File

src/Plugin/Derivative/WeatherSystemDisplayBlock.php, line 34

Class

WeatherSystemDisplayBlock
Provides block plugin definitions for nodes.

Namespace

Drupal\weather\Plugin\Derivative

Code

public function __construct(EntityStorageInterface $weatherDisplayStorage) {
  $this->weatherDisplayStorage = $weatherDisplayStorage;
}