You are here

public function LayoutParagraphsSectionsSettingsForm::__construct in Layout Paragraphs 1.0.x

Same name and namespace in other branches
  1. 2.0.x src/Form/LayoutParagraphsSectionsSettingsForm.php \Drupal\layout_paragraphs\Form\LayoutParagraphsSectionsSettingsForm::__construct()

SettingsForm constructor.

Parameters

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

\Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager: The typed config service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info service.

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

\Drupal\Core\Layout\LayoutPluginManager $layout_plugin_manager: Core layout plugin manager service.

Overrides ConfigFormBase::__construct

File

src/Form/LayoutParagraphsSectionsSettingsForm.php, line 61

Class

LayoutParagraphsSectionsSettingsForm
Class LayoutParagraphsSectionsSettingsForm.

Namespace

Drupal\layout_paragraphs\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeManagerInterface $entity_type_manager, LayoutPluginManager $layout_plugin_manager) {
  parent::__construct($config_factory);
  $this->typedConfigManager = $typedConfigManager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->entityTypeManager = $entity_type_manager;
  $this->layoutPluginManager = $layout_plugin_manager;
}