Skip to content
Snippets Groups Projects
Commit fb7f2c7c authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2077313 by Berdir: Remove unecessary BC decorator code from edit.module.

parent ba144426
No related branches found
No related tags found
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
......@@ -214,8 +214,6 @@ public function fieldForm(EntityInterface $entity, $field_name, $langcode, $view
// The form submission saved the entity in tempstore. Return the
// updated view of the field from the tempstore copy.
$entity = $this->tempStoreFactory->get('edit')->get($entity->uuid());
// @todo Remove when http://drupal.org/node/1346214 is complete.
$entity = $entity->getBCEntity();
$output = field_view_field($entity, $field_name, $view_mode_id, $langcode);
$response->addCommand(new FieldFormSavedCommand(drupal_render($output)));
......
......@@ -57,9 +57,6 @@ public function build(array $form, array &$form_state, EntityInterface $entity,
* Initialize the form state and the entity before the first form build.
*/
protected function init(array &$form_state, EntityInterface $entity, $field_name) {
// @todo Remove when http://drupal.org/node/1346214 is complete.
$entity = $entity->getBCEntity();
// @todo Rather than special-casing $node->revision, invoke prepareEdit()
// once http://drupal.org/node/1863258 lands.
if ($entity->entityType() == 'node') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment