You are here

public function FieldFormBase::__construct in Display Suite 8.2

Same name and namespace in other branches
  1. 8.4 src/Form/FieldFormBase.php \Drupal\ds\Form\FieldFormBase::__construct()
  2. 8.3 src/Form/FieldFormBase.php \Drupal\ds\Form\FieldFormBase::__construct()

Constructs a \Drupal\system\CustomFieldFormBase object.

Parameters

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

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

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_invalidator: The cache invalidator.

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

Overrides ConfigFormBase::__construct

1 call to FieldFormBase::__construct()
BlockFieldConfigForm::__construct in src/Form/BlockFieldConfigForm.php
Constructs a \Drupal\system\CustomFieldFormBase object.
1 method overrides FieldFormBase::__construct()
BlockFieldConfigForm::__construct in src/Form/BlockFieldConfigForm.php
Constructs a \Drupal\system\CustomFieldFormBase object.

File

src/Form/FieldFormBase.php, line 61

Class

FieldFormBase
Base form for fields.

Namespace

Drupal\ds\Form

Code

public function __construct(ConfigFactory $config_factory, EntityTypeManagerInterface $entity_type_manager, CacheTagsInvalidatorInterface $cache_invalidator, ModuleHandler $module_handler) {
  parent::__construct($config_factory);
  $this->entityTypeManager = $entity_type_manager;
  $this->cacheInvalidator = $cache_invalidator;
  $this->moduleHandler = $module_handler;
}