Skip to content
Snippets Groups Projects
Commit 4f8869ca authored by Jess's avatar Jess
Browse files

Issue #2755545 by michielnugter, balagan: Docblock shows wrong code to use...

Issue #2755545 by michielnugter, balagan: Docblock shows wrong code to use instead of deprecated functions
parent 37db2b5a
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -539,12 +539,12 @@ function entity_get_display($entity_type, $bundle, $view_mode) {
* When the entity form display is not available in configuration, you can
* create a new EntityFormDisplay object using:
* @code
* $values = ('entity_form_display', array(
* $values = array(
* 'targetEntityType' => $entity_type,
* 'bundle' => $bundle,
* 'mode' => $form_mode,
* 'status' => TRUE,
* ));
* );
* \Drupal::entityTypeManager()
* ->getStorage('entity_form_display')
* ->create($values);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment