Problem/Motivation

Error: Call to undefined method Drupal\Core\Field\BaseFieldDefinition::get() in Drupal\photoswipe\Plugin\Field\FieldFormatter\PhotoswipeFieldFormatter->settingsForm() (line 223 of modules/contrib/photoswipe/src/Plugin/Field/FieldFormatter/PhotoswipeFieldFormatter.php).

Steps to reproduce

Proposed resolution

Indeed BaseFieldDefinition has no get() function. Especially also FieldDefinitionInterface doesn't have it, so it's wrong by design!

getTargetEntityTypeId() should be used instead!

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork photoswipe-3271422

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Anybody created an issue. See original summary.

anybody’s picture

Issue summary: View changes
anybody’s picture

Status: Active » Needs review

  • Anybody committed 9044ab7 on 3.x
    Issue #3271422 by Anybody: Manage display broken wiht error when used in...
anybody’s picture

Status: Needs review » Fixed
anybody’s picture

Version: 3.x-dev » 3.0.x-dev
Status: Fixed » Active

Reopening for 3.0.x fix

  • Anybody committed 519d852 on 3.0.x
    Issue #3271422 by Anybody: Manage display broken wiht error when used in...
anybody’s picture

Status: Active » Fixed

Also fixed in 3.0.x now.

anybody’s picture

Title: Manage display broken wiht error when used in combination with » Manage display broken with error when used in combination with

Status: Fixed » Closed (fixed)

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