I'm getting this error constantly and can't quite figure out what's wrong!
TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in strpos() (line 126 of core/lib/Drupal/Core/Extension/Dependency.php).
When a user navigates to /how I like to check if the user is logged in before displaying the content. I like to define _user_is_logged_in: 'TRUE' access requirement in the routing.yml file to check if the current user is logged in. But I am getting an error when clearing the cache.
I need to create pdf files from a full HTML to keep my CSS files. I use a template in my module. But if I clear cache on a admin page, my template use admin theme, whereas if I clear cache on a front page, this is the front theme that it used...
How can I choose the theme to use in my template to still have the same theme used by my pdf files?
I want to use my template only with my front theme, and I search a way to fix it.