public static function Drupal::entityManager in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal.php \Drupal::entityManager()
Retrieves the entity manager service.
Return value
\Drupal\Core\Entity\EntityManagerInterface The entity manager service.
Deprecated
in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service.
43 calls to Drupal::entityManager()
- BaseFieldOverride::postDelete in core/
lib/ Drupal/ Core/ Field/ Entity/ BaseFieldOverride.php - Acts on deleted entities before the delete hook is invoked.
- CommentTestTrait::addDefaultCommentField in core/
modules/ comment/ src/ Tests/ CommentTestTrait.php - Adds the default comment field to an entity.
- CommentTranslationUITest::doTestPublishedStatus in core/
modules/ comment/ src/ Tests/ CommentTranslationUITest.php - Tests the translation publishing status.
- config_translation_config_translation_info in core/
modules/ config_translation/ config_translation.module - Implements hook_config_translation_info().
- contact_storage_test_install in core/
modules/ contact/ tests/ modules/ contact_storage_test/ contact_storage_test.install - Implements hook_install().
File
- core/
lib/ Drupal.php, line 262 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function entityManager() {
return static::getContainer()
->get('entity.manager');
}