The module isn't field_ui independent

Created on 23 November 2020, over 4 years ago
Updated 13 November 2024, 5 months ago

My project doesn't have enabled field_ui module out of dev site and this can cause error on some admin pages.
"Drupal\Core\Entity\Exception\UndefinedLinkTemplateException: No link template 'edit-form' found for the 'entity_form_mode' entity type in Drupal\Core\Entity\EntityBase->toUrl() (line 196 of /var/www/html/web/core/lib/Drupal/Core/Entity/EntityBase.php)."

I checked the codebase and the error occurs when something try to retrieves the permission and it calls FormModeManagerPermissions::buildFormModePermissions() function which call url function on form_mode entity. The default param of the url() function 'edit-form', but the path of 'edit-form' is defined in field_ui module.

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇭🇺Hungary segi

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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