Drupal 8

All customers patched against vulnerability SA-CORE-2018-004

Xplain Hosting has finished protecting all its Drupal customers against a critical security vulnerability recently found in Drupal 6, 7 and 8. A FAQ was also released to address the impact of SA-CORE-2018-004.

Automatic Drupal core updates is a core feature of Xplain Hosting: we don't leave patching to unavailable or busy Drupal development companies. Security is our number one priority. Security updates are free and included in every plan.

How to Determine Whether You Can Upgrade From Drupal 6 to Drupal 8 (Yet)

Elliot Christenson writes about upgrading from Drupal 6 to Drupal 8:

Like many of you, I have a few sites that are fairly complex, utilize dozens of modules - and still run on Drupal 6. At this point, I don't want to invest the time to migrate them to Drupal 7 because I feel the momentum is finally beginning to shift into high gear for Drupal 8.

So, how do you know whether the Drupal 8 ecosystem is ready for a relatively straightforward migration? Thankfully, there are some great resources available!

Drupal console

A new tool may help you with Drupal 8, Drupal console:

The Drupal Console is a suite of tools run from a command line interface (CLI) to generate boilerplate code and interact with a Drupal 8 installation. From the ground up, it has been built to utilize the same modern PHP practices which were introduced in Drupal 8.

Drupal Console provides a number of commands for creating module scaffolding and boilerplate code. For any command, you will be asked a series of questions about what you want to generate. Based on that user interaction, it will then generate the required boilerplate to build the requested component.

A Simple Drupal 7 to Drupal 8 Migration

Blake Hall writes about his experience doing a simple Drupal 7 to 8 migration:

The developer in me has been itching to give it a try on a "real" project. The Drupalize.Me site itself is pretty complex: e-commerce (with recurring billing), video delivery, and piles and piles of content. Suffice it to say it's not a prime candidate for migration right now. Our blog however, is definitely a better prospect. Justin has a great new design for us. Amber has mentioned how much she'd like the new Drupal 8 authoring tools. The blog is relatively straight-forward which makes it a great way for our whole team to start using Drupal 8. So, as we start to think about upgrading our blog the first thing we're going to have to think about is data migration. Let's take a look at Migrate module, that's now part of Drupal core, and see how much work we might have ahead of ourselves.

18 cool Drupal 8 modules for site builders

Joris Snoek gives us his top list of Drupal 8 modules for site builders:

Furthermore, what I noticed last month on module updates: ... Validating a form in your Drupal website without refreshing the page. This widely used module now offers a Release Candidate for Drupal 8.

Useful list, even for Drupal 7 builders.

Drupal 8: BigPipe module ready

Wim Leers writes about Drupal 8's Big Pipe module, his quest to make the entire web fast:

Rather than explaining what it does, see for yourself:

To Alter or Dispatch: Drupal 8 Events versus Alter Hooks

Lee Rowlands of previousnext discusses Drupal 8 events versus alter hooks, a great introduction to those new to Drupal 8's event system:

Drupal 8 comes with two extension points for module developers to allow other modules to interact with their code.

But there is a new kid on the block, the event system.

So as a module developer how do you decide whether to use the alter system or the event system.

Dependency Injection with Traits in Drupal 8

Amber Himes Matz writes on how to discover traits using PHP Storm, but what she finds is useful to know for all Drupal 8 developers. This is the code she was writing:

$url = Url::fromRoute('form_fun.cake_page');
$text = 'Death, or cake? (The basics)';
$links[] = \Drupal::l(t($text), $url);

But by poking in Drupal she finds out she can actually write:

$links[] = $this->l($this->t('Death, or cake? (The basics)'), new Url('form_fun.cake_page'));

Read the article to find out why and how this works.

Making Drupal 8 fly

Dries writes on making Drupal 8 fly:

In my travels to talk about Drupal, everyone asks me about Drupal 8's performance and scalability. Modern websites are much more dynamic and interactive than 10 years ago, making it more difficult to build modern sites while also being fast. It made me realize that maybe I should write up a summary of some of the most exciting performance and scalability improvements in Drupal 8. After all, Drupal 8 will leapfrog many of its competitors in terms of how to architect and scale modern web applications. Many of these improvements benefit both small and large websites, but also allow us to build even bigger websites with Drupal.

Recommended reading.

Panels, Blocks, Layouts, and Drupal 8

Addison Berry writes on "Panels in core" or "Blocks everywhere" or "Layout all the things!" and what this all means:

The end goal basically boils down to two main pieces: turn all page output into blocks (using the new plugin system), and add a new layout system that will allow site builders to control their pages. Pretty awesome, huh? Also, a lot of work.


With plugins in core, the next step was to get all of the existing Drupal blocks switched over to the new system. Using the plugin system turned the old, pokey core blocks into flexible super-blocks. This allows us to to do cool things like have multiple instances of a block. This was a huge amount of work by a lot of people. It took about a year to get the "blocks as plugins" foundation in place.

Good update and overview on what's behind the changes in Drupal 8.