Drupal 8 – Create a block plugin

This continues on from the previous post where we created a simple module. In this post we add a basic block, which is pretty easy as it turns out. Create a new file at lib/Drupal/thrones/Plugin/Block/ThronesExampleBlock.php and add the following: <?php /** * @file * Contains \Drupal\thrones\Plugin\Block\ThronesExampleBlock. */ namespace Drupal\thrones\Plugin\Block; use Drupal\block\BlockBase; use Drupal\Component\Annotation\Plugin; use Drupal\Core\Annotation\Translation;… Continue reading Drupal 8 – Create a block plugin

Creating a custom module with routing and menu items in Drupal 8

Drupal 8 changes quite a bit when you go to create a custom module. This post will take us through setting up a module and adding a route and menu item. We are going to create a module that lets us track whether Game of Thrones characters are alive or dead, because it’s damn hard to… Continue reading Creating a custom module with routing and menu items in Drupal 8

Setting up Rasbmc (XBMC) on a Raspberry Pi

This is a cheap way to get a high quality and flexible media center sitting under (or in my case, behind) your TV. RaspBMC From Windows: Download the installer Insert your SD card into the computer. Unzip and run the raspbmc-win32 installer. Once that is done, stick the card into the Pi and give it… Continue reading Setting up Rasbmc (XBMC) on a Raspberry Pi