Undefined getFieldDefinitions()

Created on 10 March 2022, over 2 years ago
Updated 5 March 2024, 9 months ago

Problem/Motivation

Error: Call to undefined method Drupal\Core\Entity\EntityTypeManager::getFieldDefinitions() in user_private_fields_form_user_form_alter() (line 95 of modules/contrib/user_private_fields/user_private_fields.module).

Steps to reproduce

After installation of the module and visiting the edit form of a user, I get the error.

Proposed resolution

Patch will follow. use EntityFieldManager instead of EntityTypemanager

Remaining tasks

Integrate Patch in new release :-)

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Downport

Version

2.0

Component

Code

Created by

🇧🇪Belgium Tim Lammar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024