Table of Contents
- Backup your database
- Check my code out of Github, or create a module directory
- Create a project info YAML file
- Create the necessary subdirectories
- Write the code to display your block
- Clear the caches
- Enable the module
- Place the block module
- See the custom block on your website
- The biggest problem I encountered
- The source code
In this tutorial I’ll demonstrate how to write a simple Drupal 8 “block module.” By this I mean that I’ll show you how to write a simple Drupal 8 module that will display output in a block. When you’re done you will have created a new block that you can place in one or more theme regions.
Quite often when I’m asked to review a UML “Use Case” that someone else has written, I ask “Have you tested your Use Case with real data?” Sadly, the answer is usually “no.”
I don’t know why people don’t do this, but they don’t, and it seems like a very logical thing — essentially a unit test for Use Cases.
“Programming is similar to golf. The point is not getting the ball in the hole, but how many strokes it takes.”
The Chicago Cubs won the 2016 National League Pennant on October 22, 2016, and are headed to the World Series, where they’ll play the Cleveland Indians.
From the Erlang Programming Rules and Conventions page, Rule 3.13 is “Do not program defensively.”
This is a video of Tina Turner — yes, that Tina Turner — and a bunch of young people performing the “Peace Mantra.” Great to hear her voice again, great video.
(If you happen to know my mom, you’ll notice that there’s a young girl near the end of the video that looks like her.)
CubsInsider.com has a great article on how Cubs’ pitcher Kyle Hendricks pitches, specifically where he tends to throw the ball.
As a business analyst (or any person interested in writing software requirements and quality), there is one thing you should always ask yourself whenever you write a business requirement:
Is this software requirement testable?
I’ve seen some business analysts write some crazy things and call them requirements, but IMHO, if you can’t test it, it’s not a requirement.
“We do not see things as they are, we see things as we are.”
We don’t see things like a computer sensor sees them. We see everything through our own rose-colored glasses.
“What you meet in another being is the projection of your own level of evolution.”
~ Ram Dass