* \Drupal\node\Entity\Node::load() if the entity type is known. If the
* entity type is variable, use the entity manager service to load the entity
* from the entity storage:
- * @code
- * \Drupal::entityTypeManager()->getStorage($entity_type)->load($id);
- * @endcode
+ * @code
+ * \Drupal::entityTypeManager()->getStorage($entity_type)->load($id);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityInterface::load()
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use
* the entity storage's loadRevision() method to load a specific entity
* revision:
- * @code
- * \Drupal::entityTypeManager()
- * ->getStorage($entity_type)
- * ->loadRevision($revision_id);
- * @endcode
+ * @code
+ * \Drupal::entityTypeManager()
+ * ->getStorage($entity_type)
+ * ->loadRevision($revision_id);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
* @see \Drupal\Core\Entity\EntityStorageInterface::loadRevision()
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use
* the entity storage's deleteRevision() method to delete a specific entity
* revision:
- * @code
- * \Drupal::entityTypeManager()
- * ->getStorage($entity_type)
- * ->deleteRevision($revision_id);
- * @endcode
+ * @code
+ * \Drupal::entityTypeManager()
+ * ->getStorage($entity_type)
+ * ->deleteRevision($revision_id);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
* @see \Drupal\Core\Entity\EntityStorageInterface::deleteRevision()
* \Drupal\node\Entity\Node::loadMultiple() if the entity type is known. If
* the entity type is variable, use the entity manager service to load the
* entity from the entity storage:
- * @code
- * \Drupal::entityTypeManager()->getStorage($entity_type)->loadMultiple($id);
- * @endcode
+ * @code
+ * \Drupal::entityTypeManager()->getStorage($entity_type)->loadMultiple($id);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityInterface::loadMultiple()
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use
* the entity storage's loadByProperties() method to load an entity by their
* property values:
- * @code
- * \Drupal::entityTypeManager()
- * ->getStorage($entity_type)
- * ->loadByProperties($values);
- * @endcode
+ * @code
+ * \Drupal::entityTypeManager()
+ * ->getStorage($entity_type)
+ * ->loadByProperties($values);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
* @see \Drupal\Core\Entity\EntityStorageInterface::loadByProperties()
*
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use
* the entity storage's loadUnchanged() method to load an unchanged entity:
- * @code
- * \Drupal::entityTypeManager()->getStorage($entity_type)->loadUnchanged($id);
- * @endcode
+ * @code
+ * \Drupal::entityTypeManager()->getStorage($entity_type)->loadUnchanged($id);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
* @see \Drupal\Core\Entity\EntityStorageInterface::loadUnchanged()
*
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use
* the entity storage's delete() method to delete multiple entities:
- * @code
- * $storage_handler = \Drupal::entityTypeManager()->getStorage($entity_type);
- * $entities = $storage_handler->loadMultiple($ids);
- * $storage_handler->delete($entities);
- * @endcode
+ * @code
+ * $storage_handler = \Drupal::entityTypeManager()->getStorage($entity_type);
+ * $entities = $storage_handler->loadMultiple($ids);
+ * $storage_handler->delete($entities);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
* @see \Drupal\Core\Entity\EntityStorageInterface::loadMultiple()
* \Drupal\node\Entity\Node::create() if the entity type is known. If the
* entity type is variable, use the entity storage's create() method to
* construct a new entity:
- * @code
- * \Drupal::entityTypeManager()->getStorage($entity_type)->create($values);
- * @endcode
+ * @code
+ * \Drupal::entityTypeManager()->getStorage($entity_type)->create($values);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
* @see \Drupal\Core\Entity\EntityStorageInterface::create()
*
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use
* the entity's label() method to get the label of the entity:
- * @code
- * $entity->label($langcode);
- * @endcode
+ * @code
+ * $entity->label($langcode);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityInterface::label()
*/
*
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0.
* Use the entity view builder's view() method for creating a render array:
- * @code
- * $view_builder = \Drupal::entityTypeManager()
- * ->getViewBuilder($entity->getEntityTypeId());
- * return $view_builder->view($entity, $view_mode, $langcode);
- * @endcode
+ * @code
+ * $view_builder = \Drupal::entityTypeManager()
+ * ->getViewBuilder($entity->getEntityTypeId());
+ * return $view_builder->view($entity, $view_mode, $langcode);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getViewBuilder()
* @see \Drupal\Core\Entity\EntityViewBuilderInterface::view()
* @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0.
* Use the entity view builder's viewMultiple() method for creating a render
* array for the provided entities:
- * @code
- * $view_builder = \Drupal::entityTypeManager()
- * ->getViewBuilder($entity->getEntityTypeId());
- * return $view_builder->viewMultiple($entities, $view_mode, $langcode);
- * @endcode
+ * @code
+ * $view_builder = \Drupal::entityTypeManager()
+ * ->getViewBuilder($entity->getEntityTypeId());
+ * return $view_builder->viewMultiple($entities, $view_mode, $langcode);
+ * @endcode
*
* @see \Drupal\Core\Entity\EntityTypeManagerInterface::getViewBuilder()
* @see \Drupal\Core\Entity\EntityViewBuilderInterface::viewMultiple()