You are here

public function FieldBlockConfigForm::__construct in Field as Block 8.2

Constructs a \Drupal\fieldblock\Form\FieldBlockConfigForm object.

Parameters

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

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

\Drupal\fieldblock\BlockEntityStorage $storage: The block entity storage.

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

\Drupal\Core\Block\BlockManager $blockManager: The block manager.

Overrides ConfigFormBase::__construct

File

src/Form/FieldBlockConfigForm.php, line 70

Class

FieldBlockConfigForm
Configuration for select Entity types and delete blocks of unused types.

Namespace

Drupal\fieldblock\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entityTypeManager, BlockEntityStorage $storage, ModuleHandlerInterface $moduleHandler, BlockManager $blockManager) {
  parent::__construct($config_factory);
  $this->entityTypeManager = $entityTypeManager;
  $this->storage = $storage;
  $this->fieldblockController = new FieldBlockController();
  $this->moduleHandler = $moduleHandler;
  $this->blockManager = $blockManager;
}