- Issue created by @vetchneons
Error: Call to a member function load() on null in Drupal\media_taxonomy_filter\Plugin\views\argument\IndexTidMediaDepth->title() is thrown after updating the module to 3.0.0-beta1 on Drupal 10.3.1.
This seems to be caused by the following line of code.
$term = $this->termStorage->load($this->argument);
Debugging $this->termStorage results in a null object.
Change:
$term = $this->termStorage->load($this->argument);
to use Drupal::entityTypeManager():
$term = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->load($this->argument);
Active
3.0
Code