diff --git a/core/includes/entity.inc b/core/includes/entity.inc index 012ef47..c132c2b 100644 --- a/core/includes/entity.inc +++ b/core/includes/entity.inc @@ -485,6 +485,11 @@ function entity_form_submit(EntityInterface $entity, $operation = 'default', &$f * (optional) The operation identifying the form variation to be returned. * @param array $form_state * (optional) An associative array containing the current state of the form. + * Use this to pass additional information to the form, such as the langcode. + * @code + * $form_state['langcode'] = $langcode; + * $form = entity_get_form($entity, 'default', $form_state); + * @endcode * * @return * The processed form for the given entity and operation.