interface EntityBundleListenerInterface
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityBundleListenerInterface.php \Drupal\Core\Entity\EntityBundleListenerInterface
- 10 core/lib/Drupal/Core/Entity/EntityBundleListenerInterface.php \Drupal\Core\Entity\EntityBundleListenerInterface
- 11.x core/lib/Drupal/Core/Entity/EntityBundleListenerInterface.php \Drupal\Core\Entity\EntityBundleListenerInterface
An interface for reacting to entity bundle creation and deletion.
Hierarchy
- interface \Drupal\Core\Entity\EntityBundleListenerInterface
Expanded class hierarchy of EntityBundleListenerInterface
All classes that implement EntityBundleListenerInterface
1 file declares its use of EntityBundleListenerInterface
- SqlContentEntityStorage.php in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBundleListenerInterface.php, line 8
Namespace
Drupal\Core\EntityView source
interface EntityBundleListenerInterface {
/**
* Reacts to a bundle being created.
*
* @param string $bundle
* The name of the bundle created.
* @param string $entity_type_id
* The entity type to which the bundle is bound; e.g. 'node' or 'user'.
*/
public function onBundleCreate($bundle, $entity_type_id);
/**
* Reacts to a bundle being deleted.
*
* This method runs before fields are deleted.
*
* @param string $bundle
* The name of the bundle being deleted.
* @param string $entity_type_id
* The entity type to which the bundle is bound; e.g. 'node' or 'user'.
*/
public function onBundleDelete($bundle, $entity_type_id);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
EntityBundleListenerInterface::onBundleCreate | public | function | Reacts to a bundle being created. | 2 |
EntityBundleListenerInterface::onBundleDelete | public | function | Reacts to a bundle being deleted. | 2 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.