function DefaultsEntityForm::__construct

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/src/Form/DefaultsEntityForm.php \Drupal\layout_builder\Form\DefaultsEntityForm::__construct()
  2. 10 core/modules/layout_builder/src/Form/DefaultsEntityForm.php \Drupal\layout_builder\Form\DefaultsEntityForm::__construct()
  3. 9 core/modules/layout_builder/src/Form/DefaultsEntityForm.php \Drupal\layout_builder\Form\DefaultsEntityForm::__construct()
  4. 8.9.x core/modules/layout_builder/src/Form/DefaultsEntityForm.php \Drupal\layout_builder\Form\DefaultsEntityForm::__construct()

Constructs a new DefaultsEntityForm.

Parameters

\Drupal\layout_builder\LayoutTempstoreRepositoryInterface $layoutTempstoreRepository: The layout tempstore repository.

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

File

core/modules/layout_builder/src/Form/DefaultsEntityForm.php, line 40

Class

DefaultsEntityForm
Provides a form containing the Layout Builder UI for defaults.

Namespace

Drupal\layout_builder\Form

Code

public function __construct(protected LayoutTempstoreRepositoryInterface $layoutTempstoreRepository, protected EntityTypeBundleInfoInterface $entityTypeBundleInfo) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.