3 namespace Drupal\entity\BundlePlugin;
5 use Drupal\Core\Entity\EntityHandlerInterface;
8 * Handles plugin-provided bundles.
10 interface BundlePluginHandlerInterface extends EntityHandlerInterface {
13 * Gets the bundle info.
16 * An array of bundle information keyed by the bundle name.
17 * The format expected by hook_entity_bundle_info().
19 public function getBundleInfo();
22 * Gets the field storage definitions.
24 public function getFieldStorageDefinitions();
27 * Gets the field definitions for a specific bundle.
29 * @param string $bundle
32 * @return \Drupal\entity\BundleFieldDefinition[]
33 * An array of bundle field definitions, keyed by field name.
35 public function getFieldDefinitions($bundle);