public function SettingsForm::__construct in Lightning Layout 8
Same name and namespace in other branches
- 8.2 src/Form/SettingsForm.php \Drupal\lightning_layout\Form\SettingsForm::__construct()
SettingsForm constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Block\BlockManagerInterface $block_manager: The block plugin manager.
\Drupal\Core\StringTranslation\TranslationInterface $translator: The string translation service.
mixed $deriver: (optional) The entity block deriver. If passed, must be an instance of \Drupal\entity_block\Plugin\Derivative\EntityBlock.
Overrides ConfigFormBase::__construct
File
- src/
Form/ SettingsForm.php, line 55
Class
- SettingsForm
- The settings form for controlling Lightning Layout's behavior.
Namespace
Drupal\lightning_layout\FormCode
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, BlockManagerInterface $block_manager, TranslationInterface $translator, $deriver = NULL) {
parent::__construct($config_factory);
$this->entityTypeManager = $entity_type_manager;
$this->blockManager = $block_manager;
$this
->setStringTranslation($translator);
$this->deriver = $deriver;
}