In some cases this line:
$this->request->attributes->get('taxonomy_term')
will not return a term object but just a taxonomy term ID. For example if we have a View with contextual filter.
So, lets handle that case as well.
In some cases this line:
$this->request->attributes->get('taxonomy_term')
will not return a term object but just a taxonomy term ID. For example if we have a View with contextual filter.
So, lets handle that case as well.
Comments
Comment #2
gnikolovski