- Issue created by @mstrelan
- Issue was unassigned.
- Status changed to Needs work
about 2 months ago 4:56am 16 July 2024
This could possibly be classified as a bug report. The entity annotation for the Vocabulary class sets the overview form to Drupal\taxonomy\Form\OverviewTerms
. Ideally this can be overridden by calling \Drupal\Core\Entity\EntityType::setFormClass
from hook_entity_type_alter
, however it has no effect since VocabularyRouteProvider::getOverviewPageRoute
hardcodes the form class.
Update \Drupal\taxonomy\Entity\Routing\VocabularyRouteProvider::getOverviewPageRoute
to call $route->setDefault('_form', $entity_type->getFormClass('overview'));
.
Test coverage
Needs work
11.0 π₯
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.