Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityTypeBundleInfoInterface.php
1 <?php
2
3 namespace Drupal\Core\Entity;
4
5 /**
6  * Provides an interface for an entity type bundle info.
7  */
8 interface EntityTypeBundleInfoInterface {
9
10   /**
11    * Get the bundle info of all entity types.
12    *
13    * @return array
14    *   An array of bundle information where the outer array is keyed by entity
15    *   type. The next level is keyed by the bundle name. The inner arrays are
16    *   associative arrays of bundle information, such as the label for the
17    *   bundle.
18    */
19   public function getAllBundleInfo();
20
21   /**
22    * Gets the bundle info of an entity type.
23    *
24    * @param string $entity_type_id
25    *   The entity type ID.
26    *
27    * @return array
28    *   An array of bundle information where the outer array is keyed by the
29    *   bundle name, or the entity type name if the entity does not have bundles.
30    *   The inner arrays are associative arrays of bundle information, such as
31    *   the label for the bundle.
32    */
33   public function getBundleInfo($entity_type_id);
34
35   /**
36    * Clears static and persistent bundles.
37    */
38   public function clearCachedBundles();
39
40 }