You are here

public function BackgroundImageManagerInterface::getEntityTypeBundles in Background Image 8

Same name and namespace in other branches
  1. 2.x src/BackgroundImageManagerInterface.php \Drupal\background_image\BackgroundImageManagerInterface::getEntityTypeBundles()
  2. 2.0.x src/BackgroundImageManagerInterface.php \Drupal\background_image\BackgroundImageManagerInterface::getEntityTypeBundles()

Retrieves the bundle info for a given entity type.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: An EntityTypeInterface object.

Return value

array An array of bundle information where the outer array is keyed by the bundle name, or the entity type name if the entity does not have bundles. The inner arrays are associative arrays of bundle information, such as the label for the bundle.

1 method overrides BackgroundImageManagerInterface::getEntityTypeBundles()
BackgroundImageManager::getEntityTypeBundles in src/BackgroundImageManager.php
Retrieves the bundle info for a given entity type.

File

src/BackgroundImageManagerInterface.php, line 240

Class

BackgroundImageManagerInterface

Namespace

Drupal\background_image

Code

public function getEntityTypeBundles(EntityTypeInterface $entity_type);