Issue #2892469 by shashikant_chauhan: deprecation notice for entity_get_form_display() is badly formatted and doens't display properly on api site
parent
e018da5082
commit
e75fef0b40
|
@ -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.
|
* @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:
|
* If the entity form display is available in configuration use:
|
||||||
* @code
|
* @code
|
||||||
* \Drupal::entityTypeManager()
|
* \Drupal::entityTypeManager()
|
||||||
* ->getStorage('entity_form_display')
|
* ->getStorage('entity_form_display')
|
||||||
* ->load($entity_type . '.' . $bundle . '.' . $form_mode);
|
* ->load($entity_type . '.' . $bundle . '.' . $form_mode);
|
||||||
* @endcode
|
* @endcode
|
||||||
* When the entity form display is not available in configuration, you can
|
* When the entity form display is not available in configuration, you can
|
||||||
* create a new EntityFormDisplay object using:
|
* create a new EntityFormDisplay object using:
|
||||||
* @code
|
* @code
|
||||||
* $values = array(
|
* $values = array(
|
||||||
* 'targetEntityType' => $entity_type,
|
* 'targetEntityType' => $entity_type,
|
||||||
* 'bundle' => $bundle,
|
* 'bundle' => $bundle,
|
||||||
* 'mode' => $form_mode,
|
* 'mode' => $form_mode,
|
||||||
* 'status' => TRUE,
|
* 'status' => TRUE,
|
||||||
* );
|
* );
|
||||||
* \Drupal::entityTypeManager()
|
* \Drupal::entityTypeManager()
|
||||||
* ->getStorage('entity_form_display')
|
* ->getStorage('entity_form_display')
|
||||||
* ->create($values);
|
* ->create($values);
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* @see \Drupal\Core\Entity\EntityStorageInterface::create()
|
* @see \Drupal\Core\Entity\EntityStorageInterface::create()
|
||||||
* @see \Drupal\Core\Entity\EntityStorageInterface::load()
|
* @see \Drupal\Core\Entity\EntityStorageInterface::load()
|
||||||
|
|
Loading…
Reference in New Issue