You are here

public function BlockFieldConfigForm::__construct in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 src/Form/BlockFieldConfigForm.php \Drupal\ds\Form\BlockFieldConfigForm::__construct()
  2. 8.3 src/Form/BlockFieldConfigForm.php \Drupal\ds\Form\BlockFieldConfigForm::__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 FieldFormBase::__construct

File

src/Form/BlockFieldConfigForm.php, line 33

Class

BlockFieldConfigForm
Configure block fields.

Namespace

Drupal\ds\Form

Code

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