You are here

public function SettingsForm::__construct in Like & Dislike 8

Constructs a \Drupal\like_and_dislike\Form\SettingsForm object.

Parameters

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

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info_service: The bundle info service.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 56

Class

SettingsForm
Class SettingsForm.

Namespace

Drupal\like_and_dislike\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $bundle_info_service) {
  parent::__construct($config_factory);
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->bundleInfoService = $bundle_info_service;
}