Problem/Motivation

Fatal error: Type of Drupal\entity_extra_field\Controller\EntityExtraFieldListBuilder::$moduleHandler must not be defined (as in class Drupal\Core\Entity\EntityHandlerBase) in /var/lib/tugboat/src/Controller/EntityExtraFieldListBuilder.php on line 23

when trying to create a new extra field on an entity at e.g. /admin/structure/types/manage/article/extra-fields

in Drupal 11.3.3

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

Assigned: Unassigned » grevil
Priority: Normal » Major
Status: Active » Needs review

Please test and review. Can be reproduced in tugboat.

anybody’s picture

Okay the route is working again in Drupal 11.3.3! I think it should also work for Drupal 10 this way, as the property is then created dynamically?

Maybe we should just create a new 3.x branch soon, after merging the other issues and clean this up?

grevil made their first commit to this issue’s fork.

grevil’s picture

I did some minor adjustments.

grevil’s picture

Assigned: grevil » anybody

The parent class already provides a method "moduleHandler()" which initiates the module handler for us...

What do you think @anybody?

Merge this in 3.x or 2.1.x and live with the potential WSOD when people don't flush their caches?

anybody’s picture

Also in Drupal 10?

I think 2.1.x would be fine then! Maybe just add an update hook then regarding the container rebuild?

grevil’s picture

grevil’s picture

Assigned: anybody » Unassigned
Status: Needs review » Reviewed & tested by the community
grevil’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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