You are here

interface EntityTypeBundleInfoInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php \Drupal\Core\Entity\EntityTypeBundleInfoInterface

Provides an interface for an entity type bundle info.

Hierarchy

Expanded class hierarchy of EntityTypeBundleInfoInterface

All classes that implement EntityTypeBundleInfoInterface

2 files declare their use of EntityTypeBundleInfoInterface
EntityFieldManagerTest.php in core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
Contains \Drupal\Tests\Core\Entity\EntityFieldManagerTest.
EntityManagerTest.php in core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php
Contains \Drupal\Tests\Core\Entity\EntityManagerTest.

File

core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php, line 13
Contains \Drupal\Core\Entity\EntityTypeBundleInfoInterface.

Namespace

Drupal\Core\Entity
View source
interface EntityTypeBundleInfoInterface {

  /**
   * Get the bundle info of all entity types.
   *
   * @return array
   *   An array of all bundle information.
   */
  public function getAllBundleInfo();

  /**
   * Gets the bundle info of an entity type.
   *
   * @param string $entity_type
   *   The entity type.
   *
   * @return array
   *   Returns the bundle information for the specified entity type.
   */
  public function getBundleInfo($entity_type);

  /**
   * Clears static and persistent bundles.
   */
  public function clearCachedBundles();

}

Members

Namesort descending Modifiers Type Description Overrides
EntityTypeBundleInfoInterface::clearCachedBundles public function Clears static and persistent bundles. 2
EntityTypeBundleInfoInterface::getAllBundleInfo public function Get the bundle info of all entity types. 2
EntityTypeBundleInfoInterface::getBundleInfo public function Gets the bundle info of an entity type. 2