You are here

public function SettingsForm::__construct in Node Option Premium 8

Constructs a new SettingsForm object.

Parameters

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

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 49

Class

SettingsForm
Defines a form that configures settings.

Namespace

Drupal\nopremium\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityDisplayRepositoryInterface $entity_display_repository, ModuleHandlerInterface $module_handler) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityDisplayRepository = $entity_display_repository;
  $this->moduleHandler = $module_handler;
}