You are here

public function LayoutAddForm::__construct in Layout builder library 8

Constructs a new LayoutAddForm object.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: Bundle info.

\Drupal\Core\Messenger\MessengerInterface $messenger: Messenger.

File

src/Form/LayoutAddForm.php, line 50

Class

LayoutAddForm
Defines a form for adding a layout library layout.

Namespace

Drupal\layout_library\Form

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $bundleInfo, MessengerInterface $messenger) {
  $this->entityTypeManager = $entityTypeManager;
  $this->bundleInfo = $bundleInfo;
  $this->messenger = $messenger;
}