You are here

public function SettingsForm::__construct in Forward 8

Same name and namespace in other branches
  1. 8.3 src/Form/SettingsForm.php \Drupal\forward\Form\SettingsForm::__construct()
  2. 8.2 src/Form/SettingsForm.php \Drupal\forward\Form\SettingsForm::__construct()

Constructs a Forward settings form.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface: The entity type manager.

\Drupal\Core\Entity\EntityTypeBundleInfo: The entity type bundle information manager.

\Drupal\Core\File\FileSystem: The file system service.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 52

Class

SettingsForm
Configure settings for this module.

Namespace

Drupal\forward\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfo $bundle_info, FileSystem $file_system) {
  parent::__construct($config_factory);
  $this->entityTypeManager = $entity_type_manager;
  $this->bundleInfoManager = $bundle_info;
  $this->fileSystem = $file_system;
}