You are here

EntityTypeBundleInfoInterface.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php

Namespace

Drupal\Core\Entity

File

core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Core\Entity\EntityTypeBundleInfoInterface.
 */
namespace Drupal\Core\Entity;


/**
 * Provides an interface for an entity type bundle info.
 */
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();

}

Interfaces

Namesort descending Description
EntityTypeBundleInfoInterface Provides an interface for an entity type bundle info.