You are here

public function SettingsForm::__construct in Sophron 8

Constructs a SettingsForm object.

Parameters

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

\Drupal\sophron\MimeMapManagerInterface $mime_map_manager: The MIME map manager service.

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed config service.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 62

Class

SettingsForm
Main Sophron settings admin form.

Namespace

Drupal\sophron\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, MimeMapManagerInterface $mime_map_manager, TypedConfigManagerInterface $typed_config) {
  parent::__construct($config_factory);
  $this->mimeMapManager = $mime_map_manager;
  $this->typedConfig = $typed_config;
}