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
Author: Sam
Drupal developer from Perth, Western Australia. I love programming, gaming, the Internet, growing vegetables and hiking.
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
Christmas 1983 Ohh yeah, Galaxy Commander!
Full build instructions at http://letsbuilditagain.com/instructions/6980/, could be fun!
Backups with Amazon S3 and Duplicity
I had to set up proper full backups for a client website, S3 seemed like an economical way to go (time will tell). Duplicity is a script which uses rsync to back up incrementally, which will save data transfer. It can also encrypt the data and a bunch of other goodies. Installing Duplicity Since the… Continue reading Backups with Amazon S3 and Duplicity