Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298558

Allow vocabulary overview form class to be overridden

$
0
0

Problem/Motivation

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.

Steps to reproduce

Proposed resolution

Update \Drupal\taxonomy\Entity\Routing\VocabularyRouteProvider::getOverviewPageRoute to call $route->setDefault('_form', $entity_type->getFormClass('overview'));.

Remaining tasks

Test coverage

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 298558


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>