You are here

public function SampleEntityGeneratorInterface::get in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Entity/SampleEntityGeneratorInterface.php \Drupal\layout_builder\Entity\SampleEntityGeneratorInterface::get()
  2. 9 core/modules/layout_builder/src/Entity/SampleEntityGeneratorInterface.php \Drupal\layout_builder\Entity\SampleEntityGeneratorInterface::get()

Gets a sample entity for a given entity type and bundle.

Parameters

string $entity_type_id: The entity type ID.

string $bundle_id: The bundle ID.

Return value

\Drupal\Core\Entity\EntityInterface An entity.

1 method overrides SampleEntityGeneratorInterface::get()
LayoutBuilderSampleEntityGenerator::get in core/modules/layout_builder/src/Entity/LayoutBuilderSampleEntityGenerator.php
Gets a sample entity for a given entity type and bundle.

File

core/modules/layout_builder/src/Entity/SampleEntityGeneratorInterface.php, line 21

Class

SampleEntityGeneratorInterface
Generates a sample entity.

Namespace

Drupal\layout_builder\Entity

Code

public function get($entity_type_id, $bundle_id);