You are here

public function SettingsForm::__construct in Build Hooks 3.x

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

Class constructor.

Parameters

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

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

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 32

Class

SettingsForm
Defines a settings form.

Namespace

Drupal\build_hooks\Form

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $config_factory) {
  parent::__construct($config_factory);
  $this->entityTypeManager = $entityTypeManager;
}