Related Posts

  • Drupal 8 Block Cache

    Justin Toupin

    In case you've had trouble tracking it down (I did), the approach to caching custom blocks is different in Drupal 8 than in Drupal 7. In Drupal 8 all renderable arrays are cacheable – including, of course, those returned by custom blocks.

  • Drupal 8: Programmatically Adding a Views Footer

    Joel Steidl

    Recently, I needed to add some dynamic content to a Views footer. Specifically, I needed to change a link in the Views footer based on the current path, which isn’t an option from the Views UI. I found some good documentation showing how this can be done in older versions of Drupal (, but nothing for Drupal 8. I figured the approach must be similar in Drupal 8 so I started searching and reverse engineering.

  • Making region content available to node templates in Drupal 8

    Brian Gervais

    Why would you need to render the content from Drupal’s block layout via a node template file? Normally, that is the territory of page templates. The use-case for me was a page where node-specific fields were mixed in with blocks to the extent that rendering region content in a page template file wasn't going to work.

    I needed to be able to render my region content amidst field values in my node template files. Drupal doesn't let you do that out-of-the-box.

  • Using BrowserSync with Drupal 8

    John Ferris

    TL;DR: Just here for Browsersync setup? Skip to the steps.

    I’m always looking for ways to reduce the time between saving a file and seeing changes on the screen.

    When I first started working with Drupal, back in the day, I would ftp changes to a server and refresh the page. Once I found Transmit, I could mount a remote directory locally and automatically save files to the server. At the time, my mind was blown by the efficiency of it. In hindsight, it seems so archaic.