Added Entity and Entity Reference Revisions which got dropped somewhere along the...
[yaffs-website] / web / modules / contrib / entity / src / BundlePlugin / BundlePluginHandlerInterface.php
1 <?php
2
3 namespace Drupal\entity\BundlePlugin;
4
5 use Drupal\Core\Entity\EntityHandlerInterface;
6
7 /**
8  * Handles plugin-provided bundles.
9  */
10 interface BundlePluginHandlerInterface extends EntityHandlerInterface {
11
12   /**
13    * Gets the bundle info.
14    *
15    * @return array
16    *   An array of bundle information keyed by the bundle name.
17    *   The format expected by hook_entity_bundle_info().
18    */
19   public function getBundleInfo();
20
21   /**
22    * Gets the field storage definitions.
23    */
24   public function getFieldStorageDefinitions();
25
26   /**
27    * Gets the field definitions for a specific bundle.
28    *
29    * @param string $bundle
30    *   The bundle name.
31    *
32    * @return \Drupal\entity\BundleFieldDefinition[]
33    *   An array of bundle field definitions, keyed by field name.
34    */
35   public function getFieldDefinitions($bundle);
36
37 }