interface SampleEntityGeneratorInterface
Same name in other branches
- 9 core/modules/layout_builder/src/Entity/SampleEntityGeneratorInterface.php \Drupal\layout_builder\Entity\SampleEntityGeneratorInterface
- 10 core/modules/layout_builder/src/Entity/SampleEntityGeneratorInterface.php \Drupal\layout_builder\Entity\SampleEntityGeneratorInterface
- 11.x core/modules/layout_builder/src/Entity/SampleEntityGeneratorInterface.php \Drupal\layout_builder\Entity\SampleEntityGeneratorInterface
Generates a sample entity.
Hierarchy
- interface \Drupal\layout_builder\Entity\SampleEntityGeneratorInterface
Expanded class hierarchy of SampleEntityGeneratorInterface
All classes that implement SampleEntityGeneratorInterface
2 files declare their use of SampleEntityGeneratorInterface
- DefaultsSectionStorage.php in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ DefaultsSectionStorage.php - DefaultsSectionStorageTest.php in core/
modules/ layout_builder/ tests/ src/ Unit/ DefaultsSectionStorageTest.php
File
-
core/
modules/ layout_builder/ src/ Entity/ SampleEntityGeneratorInterface.php, line 8
Namespace
Drupal\layout_builder\EntityView source
interface SampleEntityGeneratorInterface {
/**
* Gets a sample entity for a given entity type and bundle.
*
* @param string $entity_type_id
* The entity type ID.
* @param string $bundle_id
* The bundle ID.
*
* @return \Drupal\Core\Entity\EntityInterface
* An entity.
*/
public function get($entity_type_id, $bundle_id);
/**
* Deletes a sample entity for a given entity type and bundle.
*
* @param string $entity_type_id
* The entity type ID.
* @param string $bundle_id
* The bundle ID.
*
* @return $this
*/
public function delete($entity_type_id, $bundle_id);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
SampleEntityGeneratorInterface::delete | public | function | Deletes a sample entity for a given entity type and bundle. | 1 |
SampleEntityGeneratorInterface::get | public | function | Gets a sample entity for a given entity type and bundle. | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.