You are here

public function SettingsForm::__construct in The CodeMirror Editor 8

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator.

\Drupal\codemirror_editor\CodemirrorModeManagerInterface $mode_manager: The language mode manager.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 56

Class

SettingsForm
CodeMirror editor settings form.

Namespace

Drupal\codemirror_editor\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, CacheTagsInvalidatorInterface $cache_tags_invalidator, CodemirrorModeManagerInterface $mode_manager) {
  parent::__construct($config_factory);
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this->modeManager = $mode_manager;
}