The form_alter hook in taxonomy_place.module will throw an error if the $form_state form object is not an instance of EntityFormInterface. For instance when running a ViewsBulkOperation:

Error: Call to undefined method Drupal\views_bulk_operations\Form\ConfigureAction::getEntity() in taxonomy_place_field_widget_form_alter() (line 18 of modules/contrib/taxonomy_place/taxonomy_place.module).

Need to add:

  if (!$form_state->getFormObject() instanceof EntityFormInterface) {
    return;
  }

on line 15.

Comments

brooke_heaton created an issue. See original summary.

brooke_heaton’s picture

Add instanceof EntityFormInterface check.

brooke_heaton’s picture

Assigned: Unassigned » brooke_heaton
Status: Active » Needs review
brooke_heaton’s picture

Issue summary: View changes

  • KarenS committed e3a5e92 on 8.x-1.x authored by brooke_heaton
    Issue #3045356 by brooke_heaton: Add EntityFormInterface check on...
karens’s picture

Status: Needs review » Fixed

Looks good except missing the use statement for that class, so I'm adding that. Thanks!

Status: Fixed » Closed (fixed)

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