Commit 4f8869ca authored by xjm's avatar xjm
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
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment