
| Current Path : /var/www/html/store1/web/core/lib/Drupal/Core/Entity/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store1/web/core/lib/Drupal/Core/Entity/BundleEntityStorageInterface.php |
<?php
namespace Drupal\Core\Entity;
/**
* A storage that supports entities with bundle specific classes.
*/
interface BundleEntityStorageInterface {
/**
* Retrieves the bundle name for a provided class name.
*
* @param string $class_name
* The class name to check.
*
* @return string|null
* The bundle name of the class provided or NULL if unable to determine the
* bundle from the provided class.
*
* @throws \Drupal\Core\Entity\Exception\AmbiguousBundleClassException
* Thrown when multiple bundles are using the provided class.
*/
public function getBundleFromClass(string $class_name): ?string;
}