You are here

interface EntityManagerInterface in Drupal 8

Provides an interface for entity type managers.

Hierarchy

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

... See full list

File

core/lib/Drupal/Core/Entity/EntityManagerInterface.php, line 15

Namespace

Drupal\Core\Entity
View 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

Namesort descending Modifiers Type Description Overrides
CachedDiscoveryInterface::clearCachedDefinitions public function Clears static and persistent plugin definition caches. 2
CachedDiscoveryInterface::useCaches public function Disable the use of caches. 2
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
EntityBundleListenerInterface::onBundleCreate public function Reacts to a bundle being created. 3
EntityBundleListenerInterface::onBundleDelete public function Reacts to a bundle being deleted. 3
EntityDisplayRepositoryInterface::clearDisplayModeInfo public function Clears the gathered display mode info. 2
EntityDisplayRepositoryInterface::DEFAULT_DISPLAY_MODE constant The default display mode ID.
EntityDisplayRepositoryInterface::getAllFormModes public function Gets the entity form mode info for all entity types. 2
EntityDisplayRepositoryInterface::getAllViewModes public function Gets the entity view mode info for all entity types. 2
EntityDisplayRepositoryInterface::getFormDisplay public function Returns the entity form display associated with a bundle and form mode. 2
EntityDisplayRepositoryInterface::getFormModeOptions public function Gets an array of form mode options. 2
EntityDisplayRepositoryInterface::getFormModeOptionsByBundle public function Returns an array of enabled form mode options by bundle. 2
EntityDisplayRepositoryInterface::getFormModes public function Gets the entity form mode info for a specific entity type. 2
EntityDisplayRepositoryInterface::getViewDisplay public function Returns the entity view display associated with a bundle and view mode. 2
EntityDisplayRepositoryInterface::getViewModeOptions public function Gets an array of view mode options. 2
EntityDisplayRepositoryInterface::getViewModeOptionsByBundle public function Returns an array of enabled view mode options by bundle. 2
EntityDisplayRepositoryInterface::getViewModes public function Gets the entity view mode info for a specific entity type. 2
EntityFieldManagerInterface::clearCachedFieldDefinitions public function Clears static and persistent field definition caches. 2
EntityFieldManagerInterface::getBaseFieldDefinitions public function Gets the base field definitions for a content entity type. 2
EntityFieldManagerInterface::getExtraFields public function Gets the "extra fields" for a bundle. 2
EntityFieldManagerInterface::getFieldDefinitions public function Gets the field definitions for a specific bundle. 2
EntityFieldManagerInterface::getFieldMap public function Gets a lightweight map of fields across bundles. 2
EntityFieldManagerInterface::getFieldMapByFieldType public function Gets a lightweight map of fields across bundles filtered by field type. 2
EntityFieldManagerInterface::getFieldStorageDefinitions public function Gets the field storage definitions for a content entity type. 2
EntityFieldManagerInterface::setFieldMap public function Sets a lightweight map of fields across bundles. 2
EntityManagerInterface::getLastInstalledDefinition Deprecated public function 1
EntityManagerInterface::getLastInstalledFieldStorageDefinitions Deprecated public function 1
EntityRepositoryInterface::CONTEXT_ID_LEGACY_CONTEXT_OPERATION constant
EntityRepositoryInterface::getActive public function Retrieves the active entity variant matching the specified context. 2
EntityRepositoryInterface::getActiveMultiple public function Retrieves the active entity variants matching the specified context. 2
EntityRepositoryInterface::getCanonical public function Retrieves the canonical entity variant matching the specified context. 2
EntityRepositoryInterface::getCanonicalMultiple public function Retrieves the canonical entity variants matching the specified context. 2
EntityRepositoryInterface::getTranslationFromContext public function Gets the entity translation to be used in the given context. 2
EntityRepositoryInterface::loadEntityByConfigTarget public function Loads an entity by the config target identifier. 2
EntityRepositoryInterface::loadEntityByUuid public function Loads an entity by UUID. 2
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
EntityTypeListenerInterface::onEntityTypeCreate public function Reacts to the creation of the entity type. 4
EntityTypeListenerInterface::onEntityTypeDelete public function Reacts to the deletion of the entity type. 4
EntityTypeListenerInterface::onEntityTypeUpdate public function Reacts to the update of the entity type. 4
EntityTypeListenerInterface::onFieldableEntityTypeCreate public function Reacts to the creation of the fieldable entity type. 4
EntityTypeListenerInterface::onFieldableEntityTypeUpdate public function Reacts to the update of a fieldable entity type. 4
EntityTypeManagerInterface::createHandlerInstance public function Creates new handler instance. 2
EntityTypeManagerInterface::getAccessControlHandler public function Creates a new access control handler instance. 2
EntityTypeManagerInterface::getDefinition public function Overrides DiscoveryInterface::getDefinition 1
EntityTypeManagerInterface::getDefinitions public function Overrides DiscoveryInterface::getDefinitions 1
EntityTypeManagerInterface::getFormObject public function Creates a new form instance. 2
EntityTypeManagerInterface::getHandler public function Returns a handler instance for the given entity type and handler. 2
EntityTypeManagerInterface::getListBuilder public function Creates a new entity list builder. 2
EntityTypeManagerInterface::getRouteProviders public function Gets all route provider instances. 2
EntityTypeManagerInterface::getStorage public function Creates a new storage instance. 2
EntityTypeManagerInterface::getViewBuilder public function Creates a new view builder instance. 2
EntityTypeManagerInterface::hasHandler public function Checks whether a certain entity type has a certain handler. 2
EntityTypeRepositoryInterface::getEntityTypeFromClass public function Gets the entity type ID based on the class that is called on. 2
EntityTypeRepositoryInterface::getEntityTypeLabels public function Builds a list of entity type labels suitable for a Form API options list. 2
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 7
FieldDefinitionListenerInterface::onFieldDefinitionCreate public function Reacts to the creation of a field. 3
FieldDefinitionListenerInterface::onFieldDefinitionDelete public function Reacts to the deletion of a field. 3
FieldDefinitionListenerInterface::onFieldDefinitionUpdate public function Reacts to the update of a field. 3
FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate public function Reacts to the creation of a field storage definition. 4
FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionDelete public function Reacts to the deletion of a field storage definition. 4
FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate public function Reacts to the update of a field storage definition. 4
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4