diff --git a/core/includes/entity.inc b/core/includes/entity.inc index e8419fb16d14..67122a2b6a95 100644 --- a/core/includes/entity.inc +++ b/core/includes/entity.inc @@ -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);