Drupal 8  8.0.2
EntityTypeBundleInfo Class Reference
Inheritance diagram for EntityTypeBundleInfo:

Public Member Functions

 __construct (EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler, TypedDataManagerInterface $typed_data_manager, CacheBackendInterface $cache_backend)
 
 getBundleInfo ($entity_type)
 
 getAllBundleInfo ()
 
 clearCachedBundles ()
 

Protected Attributes

 $bundleInfo
 
 $languageManager
 
 $moduleHandler
 
 $typedDataManager
 
 $entityTypeManager
 

Detailed Description

Provides discovery and retrieval of entity type bundles.

Constructor & Destructor Documentation

__construct ( EntityTypeManagerInterface  $entity_type_manager,
LanguageManagerInterface  $language_manager,
ModuleHandlerInterface  $module_handler,
TypedDataManagerInterface  $typed_data_manager,
CacheBackendInterface  $cache_backend 
)

Constructs a new EntityTypeBundleInfo.

Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface$entity_type_managerThe entity type manager.
\Drupal\Core\Language\LanguageManagerInterface$language_managerThe language manager.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.
\Drupal\Core\TypedData\TypedDataManagerInterface$typed_data_managerThe typed data manager.
\Drupal\Core\Cache\CacheBackendInterface$cache_backendThe cache backend.

References Drupal\entityTypeManager(), Drupal\languageManager(), Drupal\moduleHandler(), and Drupal\typedDataManager().

Here is the call graph for this function:

Member Function Documentation

clearCachedBundles ( )

{Clears static and persistent bundles.}

Implements EntityTypeBundleInfoInterface.

References Cache\invalidateTags(), and Drupal\typedDataManager().

Here is the call graph for this function:

getAllBundleInfo ( )

{Get the bundle info of all entity types.

Returns
array An array of all bundle information.
}

Implements EntityTypeBundleInfoInterface.

References Drupal\entityTypeManager(), Drupal\languageManager(), Drupal\moduleHandler(), and Cache\PERMANENT.

Referenced by EntityTypeBundleInfo\getBundleInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

getBundleInfo (   $entity_type)

{Gets the bundle info of an entity type.

Parameters
string$entity_typeThe entity type.
Returns
array Returns the bundle information for the specified entity type.
}

Implements EntityTypeBundleInfoInterface.

References EntityTypeBundleInfo\getAllBundleInfo().

Here is the call graph for this function:


The documentation for this class was generated from the following file: