You are here

public function ConfigManager::getEntityManager in Drupal 8

Gets the entity manager.

Return value

\Drupal\Core\Entity\EntityManagerInterface The entity manager.

Overrides ConfigManagerInterface::getEntityManager

Deprecated

in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Config\ConfigManagerInterface::getEntityTypeManager() instead.

File

core/lib/Drupal/Core/Config/ConfigManager.php, line 154

Class

ConfigManager
The ConfigManager provides helper functions for the configuration system.

Namespace

Drupal\Core\Config

Code

public function getEntityManager() {
  @trigger_error('ConfigManagerInterface::getEntityManager() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use ::getEntityTypeManager() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED);
  return \Drupal::service('entity.manager');
}