class EntityManager

Manages entity type plugin definitions.

Each entity type definition array is set in the entity type's annotation and altered by hook_entity_info_alter().

The defaults for the plugin definition are provided in \Drupal\Core\Entity\EntityManager::defaults.

Hierarchy

Expanded class hierarchy of EntityManager

See also

\Drupal\Core\Entity\Annotation\EntityType

\Drupal\Core\Entity\EntityInterface

entity_get_info()

hook_entity_info_alter()

33 files declare their use of EntityManager
1 string reference to 'EntityManager'
1 service uses EntityManager

File

drupal/core/lib/Drupal/Core/Entity/EntityManager.php, line 34
Contains \Drupal\Core\Entity\EntityManager.

Namespace

Drupal\Core\Entity
View source

Members

Namesort descending Modifiers Type Description Overrides
EntityManager::$container protected property The injection container that should be passed into the controller factory.
EntityManager::$controllers protected property Contains instantiated controllers keyed by controller type and entity type.
EntityManager::getAccessController public function Creates a new access controller instance.
EntityManager::getAdminPath public function Returns the administration path for an entity type's bundle.
EntityManager::getControllerClass public function Returns an entity controller class.
EntityManager::getFormController public function Creates a new form controller instance.
EntityManager::getListController public function Creates a new list controller instance.
EntityManager::getRenderController public function Creates a new render controller instance.
EntityManager::getStorageController public function Creates a new storage controller instance.
EntityManager::hasController public function Checks whether a certain entity type has a certain controller.
EntityManager::__construct public function Constructs a new Entity plugin manager.
PluginManagerBase::$defaults protected property A set of defaults to be referenced by $this->processDefinition() if additional processing of plugins is necessary or helpful for development purposes. 3
PluginManagerBase::$discovery protected property The object that discovers plugins managed by this manager.
PluginManagerBase::$factory protected property The object that instantiates plugins managed by this manager.
PluginManagerBase::$mapper protected property The object that returns the preconfigured plugin instance appropriate for a particular runtime condition.
PluginManagerBase::clearCachedDefinitions public function Clears static and persistent plugin definition caches. Overrides CachedDiscoveryInterface::clearCachedDefinitions
PluginManagerBase::createInstance public function Returns a preconfigured instance of a plugin. Overrides FactoryInterface::createInstance 6
PluginManagerBase::getDefinition public function Gets a specific plugin definition. Overrides DiscoveryInterface::getDefinition
PluginManagerBase::getDefinitions public function Gets the definition of all plugins for this type. Overrides DiscoveryInterface::getDefinitions
PluginManagerBase::getInstance public function Returns a preconfigured instance of a plugin. Overrides MapperInterface::getInstance 6
PluginManagerBase::processDefinition public function Performs extra processing on plugin definitions. 2