Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityManager.php
index fa2ddf8c7922e2a3ddfecf4e9a9f62ac3306ad4f..6f2ce7672ebed9183db9b3fc1921f1dd1ccc9602 100644 (file)
@@ -25,6 +25,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::clearCachedDefinitions()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function clearCachedDefinitions() {
     $this->container->get('entity_type.manager')->clearCachedDefinitions();
@@ -41,6 +45,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getDefinition()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getDefinition($entity_type_id, $exception_on_invalid = TRUE) {
     return $this->container->get('entity_type.manager')->getDefinition($entity_type_id, $exception_on_invalid);
@@ -50,6 +58,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::hasHandler()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function hasHandler($entity_type, $handler_type) {
     return $this->container->get('entity_type.manager')->hasHandler($entity_type, $handler_type);
@@ -59,6 +71,9 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getStorage($entity_type) {
     return $this->container->get('entity_type.manager')->getStorage($entity_type);
@@ -68,6 +83,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getListBuilder()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getListBuilder($entity_type) {
     return $this->container->get('entity_type.manager')->getListBuilder($entity_type);
@@ -77,6 +96,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getFormObject()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getFormObject($entity_type, $operation) {
     return $this->container->get('entity_type.manager')->getFormObject($entity_type, $operation);
@@ -86,6 +109,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getRouteProviders()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getRouteProviders($entity_type) {
     return $this->container->get('entity_type.manager')->getRouteProviders($entity_type);
@@ -95,6 +122,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getViewBuilder()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getViewBuilder($entity_type) {
     return $this->container->get('entity_type.manager')->getViewBuilder($entity_type);
@@ -104,6 +135,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getAccessControlHandler()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getAccessControlHandler($entity_type) {
     return $this->container->get('entity_type.manager')->getAccessControlHandler($entity_type);
@@ -113,6 +148,9 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getHandler() instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getHandler($entity_type, $handler_type) {
     return $this->container->get('entity_type.manager')->getHandler($entity_type, $handler_type);
@@ -122,6 +160,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::createHandlerInstance()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function createHandlerInstance($class, EntityTypeInterface $definition = NULL) {
     return $this->container->get('entity_type.manager')->createHandlerInstance($class, $definition);
@@ -131,6 +173,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityFieldManagerInterface::getBaseFieldDefinitions()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getBaseFieldDefinitions($entity_type_id) {
     return $this->container->get('entity_field.manager')->getBaseFieldDefinitions($entity_type_id);
@@ -140,6 +186,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldDefinitions()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getFieldDefinitions($entity_type_id, $bundle) {
     return $this->container->get('entity_field.manager')->getFieldDefinitions($entity_type_id, $bundle);
@@ -149,6 +199,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldStorageDefinitions()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getFieldStorageDefinitions($entity_type_id) {
     return $this->container->get('entity_field.manager')->getFieldStorageDefinitions($entity_type_id);
@@ -158,6 +212,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityFieldManagerInterface::setFieldMap()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function setFieldMap(array $field_map) {
     return $this->container->get('entity_field.manager')->setFieldMap($field_map);
@@ -167,6 +225,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldMap()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getFieldMap() {
     return $this->container->get('entity_field.manager')->getFieldMap();
@@ -176,6 +238,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldMapByFieldType()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getFieldMapByFieldType($field_type) {
     return $this->container->get('entity_field.manager')->getFieldMapByFieldType($field_type);
@@ -185,6 +251,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionCreate()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onFieldDefinitionCreate(FieldDefinitionInterface $field_definition) {
     $this->container->get('field_definition.listener')->onFieldDefinitionCreate($field_definition);
@@ -194,6 +264,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionUpdate()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onFieldDefinitionUpdate(FieldDefinitionInterface $field_definition, FieldDefinitionInterface $original) {
     $this->container->get('field_definition.listener')->onFieldDefinitionUpdate($field_definition, $original);
@@ -203,6 +277,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionDelete()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onFieldDefinitionDelete(FieldDefinitionInterface $field_definition) {
     $this->container->get('field_definition.listener')->onFieldDefinitionDelete($field_definition);
@@ -212,6 +290,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityFieldManagerInterface::clearCachedFieldDefinitions()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function clearCachedFieldDefinitions() {
     $this->container->get('entity_field.manager')->clearCachedFieldDefinitions();
@@ -221,6 +303,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeBundleManagerInterface::clearCachedBundles()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function clearCachedBundles() {
     $this->container->get('entity_type.bundle.info')->clearCachedBundles();
@@ -230,6 +316,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeBundleManagerInterface::getBundleInfo()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getBundleInfo($entity_type) {
     return $this->container->get('entity_type.bundle.info')->getBundleInfo($entity_type);
@@ -239,6 +329,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeBundleManagerInterface::getAllBundleInfo()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getAllBundleInfo() {
     return $this->container->get('entity_type.bundle.info')->getAllBundleInfo();
@@ -255,6 +349,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeRepositoryInterface::getEntityTypeLabels()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getEntityTypeLabels($group = FALSE) {
     return $this->container->get('entity_type.repository')->getEntityTypeLabels($group);
@@ -264,6 +362,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityRepositoryInterface::getTranslationFromContext()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getTranslationFromContext(EntityInterface $entity, $langcode = NULL, $context = []) {
     return $this->container->get('entity.repository')->getTranslationFromContext($entity, $langcode, $context);
@@ -273,6 +375,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getAllViewModes()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getAllViewModes() {
     return $this->container->get('entity_display.repository')->getAllViewModes();
@@ -282,6 +388,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewModes()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getViewModes($entity_type_id) {
     return $this->container->get('entity_display.repository')->getViewModes($entity_type_id);
@@ -291,6 +401,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getAllFormModes()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getAllFormModes() {
     return $this->container->get('entity_display.repository')->getAllFormModes();
@@ -300,6 +414,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getFormModes()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getFormModes($entity_type_id) {
     return $this->container->get('entity_display.repository')->getFormModes($entity_type_id);
@@ -309,6 +427,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewModeOptions()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getViewModeOptions($entity_type_id) {
     return $this->container->get('entity_display.repository')->getViewModeOptions($entity_type_id);
@@ -318,6 +440,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getFormModeOptions()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getFormModeOptions($entity_type_id) {
     return $this->container->get('entity_display.repository')->getFormModeOptions($entity_type_id);
@@ -327,6 +453,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewModeOptionsByBundle()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getViewModeOptionsByBundle($entity_type_id, $bundle) {
     return $this->container->get('entity_display.repository')->getViewModeOptionsByBundle($entity_type_id, $bundle);
@@ -336,6 +466,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getFormModeOptionsByBundle()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getFormModeOptionsByBundle($entity_type_id, $bundle) {
     return $this->container->get('entity_display.repository')->getFormModeOptionsByBundle($entity_type_id, $bundle);
@@ -345,6 +479,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::clearDisplayModeInfo()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function clearDisplayModeInfo() {
     $this->container->get('entity_display.repository')->clearDisplayModeInfo();
@@ -354,6 +492,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityRepositoryInterface::loadEntityByUuid()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function loadEntityByUuid($entity_type_id, $uuid) {
     return $this->container->get('entity.repository')->loadEntityByUuid($entity_type_id, $uuid);
@@ -363,6 +505,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityRepositoryInterface::loadEntityByConfigTarget()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function loadEntityByConfigTarget($entity_type_id, $target) {
     return $this->container->get('entity.repository')->loadEntityByConfigTarget($entity_type_id, $target);
@@ -372,6 +518,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeRepositoryInterface::getEntityTypeFromClass()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getEntityTypeFromClass($class_name) {
     return $this->container->get('entity_type.repository')->getEntityTypeFromClass($class_name);
@@ -388,6 +538,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeUpdate()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original) {
     $this->container->get('entity_type.listener')->onEntityTypeUpdate($entity_type, $original);
@@ -397,6 +551,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeDelete()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onEntityTypeDelete(EntityTypeInterface $entity_type) {
     $this->container->get('entity_type.listener')->onEntityTypeDelete($entity_type);
@@ -406,6 +564,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onFieldStorageDefinitionCreate(FieldStorageDefinitionInterface $storage_definition) {
     $this->container->get('field_storage_definition.listener')->onFieldStorageDefinitionCreate($storage_definition);
@@ -415,6 +577,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onFieldStorageDefinitionUpdate(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) {
     $this->container->get('field_storage_definition.listener')->onFieldStorageDefinitionUpdate($storage_definition, $original);
@@ -424,6 +590,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionDelete()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onFieldStorageDefinitionDelete(FieldStorageDefinitionInterface $storage_definition) {
     $this->container->get('field_storage_definition.listener')->onFieldStorageDefinitionDelete($storage_definition);
@@ -433,6 +603,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityBundleListenerInterface::onBundleCreate()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onBundleCreate($bundle, $entity_type_id) {
     $this->container->get('entity_bundle.listener')->onBundleCreate($bundle, $entity_type_id);
@@ -442,6 +616,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityBundleListenerInterface::onBundleDelete()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function onBundleDelete($bundle, $entity_type_id) {
     $this->container->get('entity_bundle.listener')->onBundleDelete($bundle, $entity_type_id);
@@ -451,6 +629,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledDefinition()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getLastInstalledDefinition($entity_type_id) {
     return $this->container->get('entity.last_installed_schema.repository')->getLastInstalledDefinition($entity_type_id);
@@ -471,6 +653,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledFieldStorageDefinitions()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getLastInstalledFieldStorageDefinitions($entity_type_id) {
     return $this->container->get('entity.last_installed_schema.repository')->getLastInstalledFieldStorageDefinitions($entity_type_id);
@@ -480,6 +666,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getDefinitions()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getDefinitions() {
     return $this->container->get('entity_type.manager')->getDefinitions();
@@ -489,6 +679,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::hasDefinition()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function hasDefinition($plugin_id) {
     return $this->container->get('entity_type.manager')->hasDefinition($plugin_id);
@@ -498,6 +692,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::createInstance()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function createInstance($plugin_id, array $configuration = []) {
     return $this->container->get('entity_type.manager')->createInstance($plugin_id, $configuration);
@@ -507,6 +705,10 @@ class EntityManager implements EntityManagerInterface, ContainerAwareInterface {
    * {@inheritdoc}
    *
    * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
+   *   Use \Drupal\Core\Entity\EntityTypeManagerInterface::getInstance()
+   *   instead.
+   *
+   * @see https://www.drupal.org/node/2549139
    */
   public function getInstance(array $options) {
     return $this->container->get('entity_type.manager')->getInstance($options);