Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

Summary

  • Allows entity_get_form() to pass along additional information, to preserve compatibility with use cases covered by drupal_get_form().
  • Cleans up the arguments to entity_get_form() and entity_form_state_defaults().
  • The $langcode argument for entity_get_form() can now be passed as a value in the $form_state array.

Before

<?php
  function entity_form_state_defaults(EntityInterface $entity, $operation = 'default', $langcode = NULL) { }
  function entity_get_form(EntityInterface $entity, $operation = 'default', $langcode = NULL) { }
?>

After

<?php
  function entity_form_state_defaults(EntityInterface $entity, $operation = 'default', array $form_state = array()) { }
  function entity_get_form(EntityInterface $entity, $operation = 'default') { }
?>
Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done