You are here

public function ChartsConfigForm::__construct in Charts 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Form/ChartsConfigForm.php \Drupal\charts\Form\ChartsConfigForm::__construct()
  2. 8 src/Form/ChartsConfigForm.php \Drupal\charts\Form\ChartsConfigForm::__construct()
  3. 8.3 src/Form/ChartsConfigForm.php \Drupal\charts\Form\ChartsConfigForm::__construct()

Constructs a new ChartsConfigForm.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: Cache tag invalidator.

Overrides ConfigFormBase::__construct

File

src/Form/ChartsConfigForm.php, line 38

Class

ChartsConfigForm
Charts Config Form.

Namespace

Drupal\charts\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, CacheTagsInvalidatorInterface $cache_tags_invalidator) {
  parent::__construct($config_factory);
  $this->config = $this->configFactory
    ->getEditable('charts.settings');
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
}