interface EntityManagerInterface in Drupal 8
Provides an interface for entity type managers.
Hierarchy
- interface \Drupal\Core\Entity\EntityTypeListenerInterface; interface \Drupal\Core\Entity\EntityBundleListenerInterface; interface \Drupal\Core\Field\FieldStorageDefinitionListenerInterface; interface \Drupal\Core\Field\FieldDefinitionListenerInterface; interface \Drupal\Core\Entity\EntityTypeManagerInterface; interface \Drupal\Core\Entity\EntityTypeRepositoryInterface; interface \Drupal\Core\Entity\EntityTypeBundleInfoInterface; interface \Drupal\Core\Entity\EntityDisplayRepositoryInterface; interface \Drupal\Core\Entity\EntityFieldManagerInterface; interface \Drupal\Core\Entity\EntityRepositoryInterface
- interface \Drupal\Core\Entity\EntityManagerInterface
Expanded class hierarchy of EntityManagerInterface
All classes that implement EntityManagerInterface
Deprecated
in drupal:8.0.0 and is removed from drupal:9.0.0.
See also
https://www.drupal.org/node/2549139
8 files declare their use of EntityManagerInterface
- BundleConfigImportValidate.php in core/
lib/ Drupal/ Core/ Entity/ Event/ BundleConfigImportValidate.php - ConfigManager.php in core/
lib/ Drupal/ Core/ Config/ ConfigManager.php - ContentEntityFormTest.php in core/
tests/ Drupal/ Tests/ Core/ Entity/ ContentEntityFormTest.php - EntityConverter.php in core/
lib/ Drupal/ Core/ ParamConverter/ EntityConverter.php - EntityRouteProviderSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ EntityRouteProviderSubscriber.php
File
- core/
lib/ Drupal/ Core/ Entity/ EntityManagerInterface.php, line 15
Namespace
Drupal\Core\EntityView source
interface EntityManagerInterface extends EntityTypeListenerInterface, EntityBundleListenerInterface, FieldStorageDefinitionListenerInterface, FieldDefinitionListenerInterface, EntityTypeManagerInterface, EntityTypeRepositoryInterface, EntityTypeBundleInfoInterface, EntityDisplayRepositoryInterface, EntityFieldManagerInterface, EntityRepositoryInterface {
/**
* @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use
* \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledDefinition()
* instead.
*
* @see https://www.drupal.org/node/2549139
*/
public function getLastInstalledDefinition($entity_type_id);
/**
* @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use
* \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledFieldStorageDefinitions()
* instead.
*
* @see https://www.drupal.org/node/2549139
*/
public function getLastInstalledFieldStorageDefinitions($entity_type_id);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CachedDiscoveryInterface:: |
public | function | Clears static and persistent plugin definition caches. | 2 |
CachedDiscoveryInterface:: |
public | function | Disable the use of caches. | 2 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
EntityBundleListenerInterface:: |
public | function | Reacts to a bundle being created. | 3 |
EntityBundleListenerInterface:: |
public | function | Reacts to a bundle being deleted. | 3 |
EntityDisplayRepositoryInterface:: |
public | function | Clears the gathered display mode info. | 2 |
EntityDisplayRepositoryInterface:: |
constant | The default display mode ID. | ||
EntityDisplayRepositoryInterface:: |
public | function | Gets the entity form mode info for all entity types. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets the entity view mode info for all entity types. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Returns the entity form display associated with a bundle and form mode. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets an array of form mode options. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Returns an array of enabled form mode options by bundle. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets the entity form mode info for a specific entity type. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Returns the entity view display associated with a bundle and view mode. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets an array of view mode options. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Returns an array of enabled view mode options by bundle. | 2 |
EntityDisplayRepositoryInterface:: |
public | function | Gets the entity view mode info for a specific entity type. | 2 |
EntityFieldManagerInterface:: |
public | function | Clears static and persistent field definition caches. | 2 |
EntityFieldManagerInterface:: |
public | function | Gets the base field definitions for a content entity type. | 2 |
EntityFieldManagerInterface:: |
public | function | Gets the "extra fields" for a bundle. | 2 |
EntityFieldManagerInterface:: |
public | function | Gets the field definitions for a specific bundle. | 2 |
EntityFieldManagerInterface:: |
public | function | Gets a lightweight map of fields across bundles. | 2 |
EntityFieldManagerInterface:: |
public | function | Gets a lightweight map of fields across bundles filtered by field type. | 2 |
EntityFieldManagerInterface:: |
public | function | Gets the field storage definitions for a content entity type. | 2 |
EntityFieldManagerInterface:: |
public | function | Sets a lightweight map of fields across bundles. | 2 |
EntityManagerInterface:: |
public | function | 1 | |
EntityManagerInterface:: |
public | function | 1 | |
EntityRepositoryInterface:: |
constant | |||
EntityRepositoryInterface:: |
public | function | Retrieves the active entity variant matching the specified context. | 2 |
EntityRepositoryInterface:: |
public | function | Retrieves the active entity variants matching the specified context. | 2 |
EntityRepositoryInterface:: |
public | function | Retrieves the canonical entity variant matching the specified context. | 2 |
EntityRepositoryInterface:: |
public | function | Retrieves the canonical entity variants matching the specified context. | 2 |
EntityRepositoryInterface:: |
public | function | Gets the entity translation to be used in the given context. | 2 |
EntityRepositoryInterface:: |
public | function | Loads an entity by the config target identifier. | 2 |
EntityRepositoryInterface:: |
public | function | Loads an entity by UUID. | 2 |
EntityTypeBundleInfoInterface:: |
public | function | Clears static and persistent bundles. | 2 |
EntityTypeBundleInfoInterface:: |
public | function | Get the bundle info of all entity types. | 2 |
EntityTypeBundleInfoInterface:: |
public | function | Gets the bundle info of an entity type. | 2 |
EntityTypeListenerInterface:: |
public | function | Reacts to the creation of the entity type. | 4 |
EntityTypeListenerInterface:: |
public | function | Reacts to the deletion of the entity type. | 4 |
EntityTypeListenerInterface:: |
public | function | Reacts to the update of the entity type. | 4 |
EntityTypeListenerInterface:: |
public | function | Reacts to the creation of the fieldable entity type. | 4 |
EntityTypeListenerInterface:: |
public | function | Reacts to the update of a fieldable entity type. | 4 |
EntityTypeManagerInterface:: |
public | function | Creates new handler instance. | 2 |
EntityTypeManagerInterface:: |
public | function | Creates a new access control handler instance. | 2 |
EntityTypeManagerInterface:: |
public | function |
Overrides DiscoveryInterface:: |
1 |
EntityTypeManagerInterface:: |
public | function |
Overrides DiscoveryInterface:: |
1 |
EntityTypeManagerInterface:: |
public | function | Creates a new form instance. | 2 |
EntityTypeManagerInterface:: |
public | function | Returns a handler instance for the given entity type and handler. | 2 |
EntityTypeManagerInterface:: |
public | function | Creates a new entity list builder. | 2 |
EntityTypeManagerInterface:: |
public | function | Gets all route provider instances. | 2 |
EntityTypeManagerInterface:: |
public | function | Creates a new storage instance. | 2 |
EntityTypeManagerInterface:: |
public | function | Creates a new view builder instance. | 2 |
EntityTypeManagerInterface:: |
public | function | Checks whether a certain entity type has a certain handler. | 2 |
EntityTypeRepositoryInterface:: |
public | function | Gets the entity type ID based on the class that is called on. | 2 |
EntityTypeRepositoryInterface:: |
public | function | Builds a list of entity type labels suitable for a Form API options list. | 2 |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 7 |
FieldDefinitionListenerInterface:: |
public | function | Reacts to the creation of a field. | 3 |
FieldDefinitionListenerInterface:: |
public | function | Reacts to the deletion of a field. | 3 |
FieldDefinitionListenerInterface:: |
public | function | Reacts to the update of a field. | 3 |
FieldStorageDefinitionListenerInterface:: |
public | function | Reacts to the creation of a field storage definition. | 4 |
FieldStorageDefinitionListenerInterface:: |
public | function | Reacts to the deletion of a field storage definition. | 4 |
FieldStorageDefinitionListenerInterface:: |
public | function | Reacts to the update of a field storage definition. | 4 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |