function LayoutBuilderSampleEntityGenerator::__construct
Same name in other branches
- 9 core/modules/layout_builder/src/Entity/LayoutBuilderSampleEntityGenerator.php \Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator::__construct()
- 10 core/modules/layout_builder/src/Entity/LayoutBuilderSampleEntityGenerator.php \Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator::__construct()
- 11.x 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\EntityCode
public function __construct(SharedTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager) {
$this->tempStoreFactory = $temp_store_factory;
$this->entityTypeManager = $entity_type_manager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.