You are here

public function LayoutBuilderSampleEntityGenerator::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Entity/LayoutBuilderSampleEntityGenerator.php \Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator::__construct()
  2. 10 core/modules/layout_builder/src/Entity/LayoutBuilderSampleEntityGenerator.php \Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator::__construct()

LayoutBuilderSampleEntityGenerator constructor.

Parameters

\Drupal\Core\TempStore\SharedTempStoreFactory $temp_store_factory: The tempstore factory.

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

File

core/modules/layout_builder/src/Entity/LayoutBuilderSampleEntityGenerator.php, line 36

Class

LayoutBuilderSampleEntityGenerator
Generates a sample entity for use by the Layout Builder.

Namespace

Drupal\layout_builder\Entity

Code

public function __construct(SharedTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->tempStoreFactory = $temp_store_factory;
  $this->entityTypeManager = $entity_type_manager;
}