| Drupal
3 More Major Features in Drupal 8.2

In early August, we wrote about 7 improvements you'll see in Drupal 8.2.

During the four weeks since that post, the Drupal team has added more major features. Drupal 8.2 is now in the release candidate stage, so the features are finalized. Now is a good time to download and test.

You can read the 8.2 changelog for a rundown of all the changes, but in this blog post we'll introduce you to three more big improvements.

First, it's important to note that all these new features are disabled by default. These are called "Experimental modules". Some of them have been in this state since Drupal 8 launched a year ago.

Drupal 8.2 experimental modules

When you enable one of these modules, you will get this warning message:

Drupal 8.2 experimental modules warning

Is this a good idea? I'm unsure. WordPress releases possible new features as plugins, before they're included in the core. Drupal places them directly into the core, even with Alpha or Beta stability.

On the upside, these experimental modules have no known security issues and don't impact the core in any way: they can be removed with no disruption. Plus, we've written very positively on how the new Drupal 8 development process is working, and if this is how the Drupal team want to roll out new features, let's give it a go.

Feature #1. Content Moderation

This is a port of the Workbench Moderation module and allows you to expand on Drupal's "unpublished" and "published" states for content. This project was announced by Dries during his keynote at DrupalCon New Orleans and is heavily supported by the Drupal team at Pfizer.

Go to Configuration > Content moderation and you'll see two options, "Moderation states" and "Moderation state transitions".

Drupal 8.2 content moderation

Moderation states provide "Draft" and "Archived" as additions to basic "Published" option.

Drupal 8.2 moderation states

You can click the blue "Add Moderation state" button and create new states:

Add a new moderation state in 8.2

If you move the "Moderation state transitions" screen, you can create the actual workflow. You decide the direction in which content moves from state to state, and which user roles are allowed to make that move.

Drupal 8.2 moderation state transitions

Once your moderation workflows are established, go to Structure > Content types > Manage moderation and you can apply the workflows to different content types.

Add moderation to content types in Drupal 8

Feature #2. Datetime Range

The Date module in Drupal 7 packed many features into a single install.

In contrast, the Date module in Drupal 8 is far more basic, to the point where it left out some key functionality. The Datetime Range module is an attempt to restore one of the key features: start and end dates. This is vital for anyone needing to add events to Drupal.

After enabling the module, you'll now be able to create "Date range" fields.

Date range fields in Drupal 8

Inside the field, you'll see that start and end dates are available:

Start and end dates in Drupal 8.2

Feature #3. Outside-in

The Outside-in module brings some configuration settings to Drupal's inline editing experience.

To test this feature, you click the Pencil icon for a block, and then click "Quick edit".

Quick edit on a Drupal 8 block

After clicking, a right sidebar will appear with the configuration settings for that block. Dries has a longer explanation of this feature on his blog.

Drupal 8.2 outside-in editing

About the author

Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.