Chris@0: container->get('entity_type.manager')->clearCachedDefinitions(); Chris@0: Chris@0: // @todo None of these are plugin managers, and they should not co-opt Chris@0: // this method for managing its caches. Remove in Chris@0: // https://www.drupal.org/node/2549143. Chris@0: $this->container->get('entity_type.bundle.info')->clearCachedBundles(); Chris@0: $this->container->get('entity_field.manager')->clearCachedFieldDefinitions(); Chris@0: $this->container->get('entity_type.repository')->clearCachedDefinitions(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getDefinition() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getDefinition($entity_type_id, $exception_on_invalid = TRUE) { Chris@0: return $this->container->get('entity_type.manager')->getDefinition($entity_type_id, $exception_on_invalid); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::hasHandler() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@18: public function hasHandler($entity_type_id, $handler_type) { Chris@18: return $this->container->get('entity_type.manager')->hasHandler($entity_type_id, $handler_type); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@18: public function getStorage($entity_type_id) { Chris@18: return $this->container->get('entity_type.manager')->getStorage($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getListBuilder() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@18: public function getListBuilder($entity_type_id) { Chris@18: return $this->container->get('entity_type.manager')->getListBuilder($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getFormObject() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@18: public function getFormObject($entity_type_id, $operation) { Chris@18: return $this->container->get('entity_type.manager')->getFormObject($entity_type_id, $operation); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getRouteProviders() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@18: public function getRouteProviders($entity_type_id) { Chris@18: return $this->container->get('entity_type.manager')->getRouteProviders($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getViewBuilder() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@18: public function getViewBuilder($entity_type_id) { Chris@18: return $this->container->get('entity_type.manager')->getViewBuilder($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getAccessControlHandler() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@18: public function getAccessControlHandler($entity_type_id) { Chris@18: return $this->container->get('entity_type.manager')->getAccessControlHandler($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getHandler() instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@18: public function getHandler($entity_type_id, $handler_type) { Chris@18: return $this->container->get('entity_type.manager')->getHandler($entity_type_id, $handler_type); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::createHandlerInstance() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function createHandlerInstance($class, EntityTypeInterface $definition = NULL) { Chris@0: return $this->container->get('entity_type.manager')->createHandlerInstance($class, $definition); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityFieldManagerInterface::getBaseFieldDefinitions() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getBaseFieldDefinitions($entity_type_id) { Chris@0: return $this->container->get('entity_field.manager')->getBaseFieldDefinitions($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldDefinitions() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getFieldDefinitions($entity_type_id, $bundle) { Chris@0: return $this->container->get('entity_field.manager')->getFieldDefinitions($entity_type_id, $bundle); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldStorageDefinitions() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getFieldStorageDefinitions($entity_type_id) { Chris@0: return $this->container->get('entity_field.manager')->getFieldStorageDefinitions($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@18: * Use \Drupal\Core\Entity\EntityFieldManagerInterface::getActiveFieldStorageDefinitions() Chris@18: * instead. Chris@18: * Chris@18: * @see https://www.drupal.org/node/3040966 Chris@18: */ Chris@18: public function getActiveFieldStorageDefinitions($entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::getActiveFieldStorageDefinitions() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityFieldManagerInterface::getActiveFieldStorageDefinitions() instead. See https://www.drupal.org/node/3040966.', E_USER_DEPRECATED); Chris@18: return $this->container->get('entity_field.manager')->getActiveFieldStorageDefinitions($entity_type_id); Chris@18: } Chris@18: Chris@18: /** Chris@18: * {@inheritdoc} Chris@18: * Chris@18: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityFieldManagerInterface::setFieldMap() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function setFieldMap(array $field_map) { Chris@0: return $this->container->get('entity_field.manager')->setFieldMap($field_map); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldMap() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getFieldMap() { Chris@0: return $this->container->get('entity_field.manager')->getFieldMap(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityFieldManagerInterface::getFieldMapByFieldType() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getFieldMapByFieldType($field_type) { Chris@0: return $this->container->get('entity_field.manager')->getFieldMapByFieldType($field_type); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionCreate() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onFieldDefinitionCreate(FieldDefinitionInterface $field_definition) { Chris@18: @trigger_error('EntityManagerInterface::onFieldDefinitionCreate() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionCreate() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('field_definition.listener')->onFieldDefinitionCreate($field_definition); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionUpdate() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onFieldDefinitionUpdate(FieldDefinitionInterface $field_definition, FieldDefinitionInterface $original) { Chris@18: @trigger_error('EntityManagerInterface::onFieldDefinitionUpdate() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionUpdate() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('field_definition.listener')->onFieldDefinitionUpdate($field_definition, $original); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionDelete() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onFieldDefinitionDelete(FieldDefinitionInterface $field_definition) { Chris@18: @trigger_error('EntityManagerInterface::onFieldDefinitionDelete() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Field\FieldDefinitionListenerInterface::onFieldDefinitionDelete() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('field_definition.listener')->onFieldDefinitionDelete($field_definition); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityFieldManagerInterface::clearCachedFieldDefinitions() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function clearCachedFieldDefinitions() { Chris@0: $this->container->get('entity_field.manager')->clearCachedFieldDefinitions(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@18: * @deprecated in drupal:8.0.0, will be removed before drupal:9.0.0. Chris@16: * Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::clearCachedBundles() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function clearCachedBundles() { Chris@18: @trigger_error('EntityManagerInterface::clearCachedBundles() is deprecated in drupal:8.0.0 and will be removed before drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::clearCachedBundles() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('entity_type.bundle.info')->clearCachedBundles(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@18: * @deprecated in drupal:8.0.0, will be removed before drupal:9.0.0. Chris@16: * Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getBundleInfo() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getBundleInfo($entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::getBundleInfo() is deprecated in drupal:8.0.0 and will be removed before drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getBundleInfo() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_type.bundle.info')->getBundleInfo($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@18: * @deprecated in drupal:8.0.0, will be removed before drupal:9.0.0. Chris@16: * Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getAllBundleInfo() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getAllBundleInfo() { Chris@18: @trigger_error('EntityManagerInterface::getAllBundleInfo() is deprecated in drupal:8.0.0 and will be removed before drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getAllBundleInfo() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_type.bundle.info')->getAllBundleInfo(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function getExtraFields($entity_type_id, $bundle) { Chris@0: return $this->container->get('entity_field.manager')->getExtraFields($entity_type_id, $bundle); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeRepositoryInterface::getEntityTypeLabels() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getEntityTypeLabels($group = FALSE) { Chris@18: @trigger_error('EntityManagerInterface::getEntityTypeLabels() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityTypeRepositoryInterface::getEntityTypeLabels() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_type.repository')->getEntityTypeLabels($group); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityRepositoryInterface::getTranslationFromContext() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getTranslationFromContext(EntityInterface $entity, $langcode = NULL, $context = []) { Chris@18: @trigger_error('EntityManagerInterface::getTranslationFromContext() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityRepository::getTranslationFromContext() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity.repository')->getTranslationFromContext($entity, $langcode, $context); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@18: * @deprecated in Drupal 8.7.0, will be removed before Drupal 9.0.0. Chris@18: * Use \Drupal\Core\Entity\EntityRepositoryInterface::getActive() instead. Chris@18: * Chris@18: * @see https://www.drupal.org/node/2549139 Chris@18: */ Chris@18: public function getActive($entity_type_id, $entity_id, array $contexts = NULL) { Chris@18: @trigger_error('EntityManagerInterface::getActive() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getActive() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@18: return $this->container->get('entity.repository')->getActive($entity_type_id, $entity_id, $contexts); Chris@18: } Chris@18: Chris@18: /** Chris@18: * {@inheritdoc} Chris@18: * Chris@18: * @deprecated in Drupal 8.7.0, will be removed before Drupal 9.0.0. Chris@18: * Use \Drupal\Core\Entity\EntityRepositoryInterface::getActiveMultiple() Chris@18: * instead. Chris@18: * Chris@18: * @see https://www.drupal.org/node/2549139 Chris@18: */ Chris@18: public function getActiveMultiple($entity_type_id, array $entity_ids, array $contexts = NULL) { Chris@18: @trigger_error('EntityManagerInterface::getActiveMultiple() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getActiveMultiple() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@18: return $this->container->get('entity.repository')->getActiveMultiple($entity_type_id, $entity_ids, $contexts); Chris@18: } Chris@18: Chris@18: /** Chris@18: * {@inheritdoc} Chris@18: * Chris@18: * @deprecated in Drupal 8.7.0, will be removed before Drupal 9.0.0. Chris@18: * Use \Drupal\Core\Entity\EntityRepositoryInterface::getCanonical() Chris@18: * instead. Chris@18: * Chris@18: * @see https://www.drupal.org/node/2549139 Chris@18: */ Chris@18: public function getCanonical($entity_type_id, $entity_id, array $contexts = NULL) { Chris@18: @trigger_error('EntityManagerInterface::getCanonical() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getCanonical() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@18: return $this->container->get('entity.repository')->getCanonical($entity_type_id, $entity_id, $contexts); Chris@18: } Chris@18: Chris@18: /** Chris@18: * {@inheritdoc} Chris@18: * Chris@18: * @deprecated in Drupal 8.7.0, will be removed before Drupal 9.0.0. Chris@18: * Use \Drupal\Core\Entity\EntityRepositoryInterface::getCanonicalMultiple() Chris@18: * instead. Chris@18: * Chris@18: * @see https://www.drupal.org/node/2549139 Chris@18: */ Chris@18: public function getCanonicalMultiple($entity_type_id, array $entity_ids, array $contexts = NULL) { Chris@18: @trigger_error('EntityManagerInterface::getCanonicalMultiple() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityRepositoryInterface::getCanonicalMultiple() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@18: return $this->container->get('entity.repository')->getCanonicalMultiple($entity_type_id, $entity_ids, $contexts); Chris@18: } Chris@18: Chris@18: /** Chris@18: * {@inheritdoc} Chris@18: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getAllViewModes() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getAllViewModes() { Chris@18: @trigger_error('EntityManagerInterface::getAllViewModes() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getAllViewModes() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_display.repository')->getAllViewModes(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewModes() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getViewModes($entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::getViewModes() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewModes() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_display.repository')->getViewModes($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getAllFormModes() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getAllFormModes() { Chris@18: @trigger_error('EntityManagerInterface::getAllFormModes() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getAllFormModes() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_display.repository')->getAllFormModes(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getFormModes() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getFormModes($entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::getFormModes() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getFormModes() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_display.repository')->getFormModes($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewModeOptions() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getViewModeOptions($entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::getViewModeOptions() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewModeOptions() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_display.repository')->getViewModeOptions($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getFormModeOptions() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getFormModeOptions($entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::getFormModeOptions() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getFormModeOptions() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_display.repository')->getFormModeOptions($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewModeOptionsByBundle() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getViewModeOptionsByBundle($entity_type_id, $bundle) { Chris@18: @trigger_error('EntityManagerInterface::getViewModeOptionsByBundle() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getViewModeOptionsByBundle() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_display.repository')->getViewModeOptionsByBundle($entity_type_id, $bundle); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getFormModeOptionsByBundle() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getFormModeOptionsByBundle($entity_type_id, $bundle) { Chris@18: @trigger_error('EntityManagerInterface::getFormModeOptionsByBundle() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::getFormModeOptionsByBundle() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_display.repository')->getFormModeOptionsByBundle($entity_type_id, $bundle); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::clearDisplayModeInfo() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function clearDisplayModeInfo() { Chris@18: @trigger_error('EntityManagerInterface::clearDisplayModeInfo() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDisplayRepositoryInterface::clearDisplayModeInfo() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('entity_display.repository')->clearDisplayModeInfo(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityRepositoryInterface::loadEntityByUuid() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function loadEntityByUuid($entity_type_id, $uuid) { Chris@18: @trigger_error('EntityManagerInterface::loadEntityByUuid() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityRepository::loadEntityByUuid() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity.repository')->loadEntityByUuid($entity_type_id, $uuid); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityRepositoryInterface::loadEntityByConfigTarget() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function loadEntityByConfigTarget($entity_type_id, $target) { Chris@18: @trigger_error('EntityManagerInterface::loadEntityByConfigTarget() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityRepository::loadEntityByConfigTarget() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity.repository')->loadEntityByConfigTarget($entity_type_id, $target); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeRepositoryInterface::getEntityTypeFromClass() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getEntityTypeFromClass($class_name) { Chris@18: @trigger_error('EntityManagerInterface::getEntityTypeFromClass() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityTypeRepositoryInterface::getEntityTypeFromClass() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_type.repository')->getEntityTypeFromClass($class_name); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function onEntityTypeCreate(EntityTypeInterface $entity_type) { Chris@18: @trigger_error('EntityManagerInterface::onEntityTypeCreate() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeCreate() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('entity_type.listener')->onEntityTypeCreate($entity_type); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeUpdate() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original) { Chris@18: @trigger_error('EntityManagerInterface::onEntityTypeUpdate() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeUpdate() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('entity_type.listener')->onEntityTypeUpdate($entity_type, $original); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@18: * @deprecated in Drupal 8.7.0, will be removed before Drupal 9.0.0. Chris@18: * Use \Drupal\Core\Entity\EntityTypeListenerInterface::onFieldableEntityTypeUpdate() Chris@18: * instead. Chris@18: * Chris@18: * @see https://www.drupal.org/project/drupal/issues/2984782 Chris@18: */ Chris@18: public function onFieldableEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original, array $field_storage_definitions, array $original_field_storage_definitions, array &$sandbox = NULL) { Chris@18: $this->container->get('entity_type.listener')->onFieldableEntityTypeUpdate($entity_type, $original, $field_storage_definitions, $original_field_storage_definitions, $sandbox); Chris@18: } Chris@18: Chris@18: /** Chris@18: * {@inheritdoc} Chris@18: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeDelete() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onEntityTypeDelete(EntityTypeInterface $entity_type) { Chris@18: @trigger_error('EntityManagerInterface::onEntityTypeDelete() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityTypeListenerInterface::onEntityTypeDelete() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('entity_type.listener')->onEntityTypeDelete($entity_type); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onFieldStorageDefinitionCreate(FieldStorageDefinitionInterface $storage_definition) { Chris@18: @trigger_error('EntityManagerInterface::onFieldStorageDefinitionCreate() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionCreate() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('field_storage_definition.listener')->onFieldStorageDefinitionCreate($storage_definition); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onFieldStorageDefinitionUpdate(FieldStorageDefinitionInterface $storage_definition, FieldStorageDefinitionInterface $original) { Chris@18: @trigger_error('EntityManagerInterface::onFieldStorageDefinitionUpdate() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionUpdate() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('field_storage_definition.listener')->onFieldStorageDefinitionUpdate($storage_definition, $original); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionDelete() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onFieldStorageDefinitionDelete(FieldStorageDefinitionInterface $storage_definition) { Chris@18: @trigger_error('EntityManagerInterface::onFieldStorageDefinitionDelete() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Field\FieldStorageDefinitionListenerInterface::onFieldStorageDefinitionDelete() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('field_storage_definition.listener')->onFieldStorageDefinitionDelete($storage_definition); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityBundleListenerInterface::onBundleCreate() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onBundleCreate($bundle, $entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::onBundleCreate() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityBundleListenerInterface::onBundleCreate() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('entity_bundle.listener')->onBundleCreate($bundle, $entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityBundleListenerInterface::onBundleDelete() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function onBundleDelete($bundle, $entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::onBundleDelete() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityBundleListenerInterface::onBundleDelete() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('entity_bundle.listener')->onBundleDelete($bundle, $entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledDefinition() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getLastInstalledDefinition($entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::getLastInstalledDefinition() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledDefinition() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity.last_installed_schema.repository')->getLastInstalledDefinition($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@18: * Chris@18: * @deprecated EntityManagerInterface::useCaches() is deprecated in 8.0.0 and Chris@18: * will be removed before Drupal 9.0.0. Use Chris@18: * \Drupal\Core\Entity\EntityTypeManagerInterface::useCaches() and/or Chris@18: * Drupal\Core\Entity\EntityFieldManagerInterface::useCaches() instead. Chris@18: * Chris@18: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function useCaches($use_caches = FALSE) { Chris@18: @trigger_error('EntityManagerInterface::useCaches() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::useCaches() and/or Drupal\Core\Entity\EntityFieldManagerInterface::useCaches() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: $this->container->get('entity_type.manager')->useCaches($use_caches); Chris@0: Chris@0: // @todo EntityFieldManager is not a plugin manager, and should not co-opt Chris@0: // this method for managing its caches. Chris@0: $this->container->get('entity_field.manager')->useCaches($use_caches); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledFieldStorageDefinitions() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getLastInstalledFieldStorageDefinitions($entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::getLastInstalledFieldStorageDefinitions() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface::getLastInstalledFieldStorageDefinitions() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity.last_installed_schema.repository')->getLastInstalledFieldStorageDefinitions($entity_type_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getDefinitions() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getDefinitions() { Chris@0: return $this->container->get('entity_type.manager')->getDefinitions(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::hasDefinition() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function hasDefinition($plugin_id) { Chris@0: return $this->container->get('entity_type.manager')->hasDefinition($plugin_id); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@18: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getActiveDefinition() Chris@18: * instead. Chris@18: * Chris@18: * @see https://www.drupal.org/node/3040966 Chris@18: */ Chris@18: public function getActiveDefinition($entity_type_id) { Chris@18: @trigger_error('EntityManagerInterface::getActiveDefinition() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::getActiveDefinition() instead. See https://www.drupal.org/node/3040966.', E_USER_DEPRECATED); Chris@18: return $this->container->get('entity_type.manager')->getActiveDefinition($entity_type_id); Chris@18: } Chris@18: Chris@18: /** Chris@18: * {@inheritdoc} Chris@18: * Chris@18: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::createInstance() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function createInstance($plugin_id, array $configuration = []) { Chris@18: @trigger_error('EntityManagerInterface::createInstance() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::createInstance() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_type.manager')->createInstance($plugin_id, $configuration); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Chris@0: * Use \Drupal\Core\Entity\EntityTypeManagerInterface::getInstance() Chris@0: * instead. Chris@0: * Chris@0: * @see https://www.drupal.org/node/2549139 Chris@0: */ Chris@0: public function getInstance(array $options) { Chris@18: @trigger_error('EntityManagerInterface::getInstance() is deprecated in 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityTypeManagerInterface::getInstance() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED); Chris@0: return $this->container->get('entity_type.manager')->getInstance($options); Chris@0: } Chris@0: Chris@0: }