X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fincludes%2Fentity.inc;h=c69c588f0e2950463396b3b5936cbdf4bbd6c5a7;hp=45eaa3d8e40050237d047f3bb8ccb97d3e084c46;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/includes/entity.inc b/web/core/includes/entity.inc index 45eaa3d8e..c69c588f0 100644 --- a/web/core/includes/entity.inc +++ b/web/core/includes/entity.inc @@ -531,24 +531,24 @@ function entity_get_display($entity_type, $bundle, $view_mode) { * * @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. * If the entity form display is available in configuration use: - * @code - * \Drupal::entityTypeManager() - * ->getStorage('entity_form_display') - * ->load($entity_type . '.' . $bundle . '.' . $form_mode); - * @endcode + * @code + * \Drupal::entityTypeManager() + * ->getStorage('entity_form_display') + * ->load($entity_type . '.' . $bundle . '.' . $form_mode); + * @endcode * When the entity form display is not available in configuration, you can * create a new EntityFormDisplay object using: - * @code - * $values = array( - * 'targetEntityType' => $entity_type, - * 'bundle' => $bundle, - * 'mode' => $form_mode, - * 'status' => TRUE, - * ); - * \Drupal::entityTypeManager() - * ->getStorage('entity_form_display') - * ->create($values); - * @endcode + * @code + * $values = array( + * 'targetEntityType' => $entity_type, + * 'bundle' => $bundle, + * 'mode' => $form_mode, + * 'status' => TRUE, + * ); + * \Drupal::entityTypeManager() + * ->getStorage('entity_form_display') + * ->create($values); + * @endcode * * @see \Drupal\Core\Entity\EntityStorageInterface::create() * @see \Drupal\Core\Entity\EntityStorageInterface::load()