Problem/Motivation

When I add a field of type 'Webform' to a view, it is impossible to change its settings.
In WebformEntityReferenceEntityFormatter::settingsForm():

<?php
    $entity_type_definition = \Drupal::entityTypeManager()->getDefinition($form['#entity_type']);
    $form = parent::settingsForm($form, $form_state);
?>

$form['#entity_type'] is undefined.

Proposed resolution

Use $this->fieldDefinition->getTargetEntityTypeId()

Remaining tasks

Provide a patch

User interface changes

None

API changes

None

Data model changes

None

CommentFileSizeAuthor
#2 2869293.patch1.02 KBvalthebald

Comments

valthebald created an issue. See original summary.

valthebald’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB

  • jrockowitz committed 6c948b8 on 8.x-5.x authored by valthebald
    Issue #2869293 by valthebald: WebformEntityReferenceEntityFormatter::...
jrockowitz’s picture

Thanks for the patch.

jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.