When switching an existing D8 site from 5.5 to 5.6, it’s necessary to clear cache, because the compiled Twig files will all be incompatible (having been compiled under 5.5).
These files live in /sites/default/files/php/twig
If you switch an existing D8 site to 5.6, unless your site’s in dev mode, you’re going to get a 500 error on page load, and of course you won’t be able to get to your Performance page to clear cache from the admin interface; so use drush and do drush cache-rebuild
Worked for me, anyway.
Is it possible, using either Drupal7 or Drupal8 and views, to create a view with tabs defined dynamically from Taxonomy? I'd like to do this so that if someone creates a new term in a specific taxonomy and creates content tagged with that term, I don't have to update the view for the content to show up appropriately, or alternately, if they delete a term, it deletes that tab automatically.
I'm attempting to code a hook to email users when a new node is created in Drupal 8.
I have been able to get the userids then user objects loaded into an array of objects but I can't figure out how to loop through these objects and access the field for email in a foreach loop. I know i'm missing something really simple... Is there a method for getting the email of a user? Check out the code below. It's really simple.