You are here

public function WundergroundWeatherSettingsForm::__construct in Wunderground weather 8

WundergroundWeatherSettingsForm constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Defines the interface for a configuration object factory.

\Drupal\Core\Language\LanguageManager $language_manager: Class for providing language support on language-unaware sites.

\Drupal\Core\Utility\LinkGenerator $link_generator: Decorator for the URL generator, which bubbles bubbleable URL metadata.

Overrides ConfigFormBase::__construct

File

src/Form/WundergroundWeatherSettingsForm.php, line 50
Contains \Drupal\wunderground_weather\Form\wunderground_weatherSettingsForm.

Class

WundergroundWeatherSettingsForm
Defines a form to configure module settings.

Namespace

Drupal\wunderground_weather\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, LanguageManager $language_manager, LinkGenerator $link_generator) {
  parent::__construct($config_factory);
  $this
    ->setConfigFactory($config_factory);
  $this->linkGenerator = $link_generator;
  $this->languageManager = $language_manager;
}