- Issue created by @sergey2006
I've changed
$vocabulary = $this->request->get('taxonomy_vocabulary');
to
$vocabulary = \Drupal::request()->get('taxonomy_vocabulary');
and voila!
but have some other issue with sub-terms which cant read and show in menu
i have PHP 8.13.17 and symfony 7.2
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
That line used to have
\Drupal::request()
but it was replaced with the move to dependency injection. It looks like the dependency injection was not done correctly. - Merge request !16Issue #3512691: Fix use of dependency injection of \Drupal::request() → (Merged) created by Liam Morland
This fix " $vocabulary = $this->request->getCurrentRequest()->get('taxonomy_vocabulary'); "
works fine!
Thank you.But still cant find problem with sub-terms :(
Why they are not appearing in site taxonomy menu?-
liam morland →
committed 1a190ba3 on 3.0.x
Issue #3512691: Fix use of dependency injection of \Drupal::request()...
-
liam morland →
committed 1a190ba3 on 3.0.x
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
Please open a separate ticket for the other issue.
Automatically closed - issue fixed for 2 weeks with no activity.