Drupal 8

For a more visual representation of this, see my presentation that's being given at Drupal Camp LA.

At drupal con there were a lot of talks on Drupal 8.  It has a whole lot of changes, in it's interface and under the hood.  Here's a summary of what's to come:

Timeline

The first question anyone asks is when this will be released, which is still pretty ambiguous at this point: "End of 2013" or "When it's done".  We are in the "Polish Phase" of the chart on the right.

The other question is when should I move to it, and the response to that depends on who you are:

  • Module Developer: NOW
  • Small site or early adopter: mid 2014
  • Large site or late adopter: late 2014

Initiatives

This release of drupal was organized and pushed by having set goals / initiatives, which are:

  • HTML5
  • Mobile
  • Views in Core
  • Multilingual
  • Configuration Management
  • Layouts (SCOTCH)
  • Web Services (WSCCI)

This method was really helpful in getting the drupal community to focus on the main goals and not splinter off too much into all the other possible improvements that could be made.

Setup

There are a lot of changes in the base setup that you'll notice when you install it:

  • Moved core into it's own folder so people know not to hack it or put files in there
  • Added a local settings file to allow for easier pushing of settings between environments while still having local overrides: http://drupal.org/node/1118520
  • No need for sites/all, but you can still use it: http://drupal.org/node/1766160
  • They also have a new folder at sites/default/files/php for symfony to put it's compiled code.
  • An improved install process that is easier on the eyes.

Simplified Admin

They've also incorporated module filter and a simplified menu admin to make it easier to manage.

Editability / UI Features

They've done a lot to improve the Administration UI.  They've incorporated views, allowing content and user lists to be easily editable.  They've added ctools dropdown style buttons to make a less button heavy ui.  The vertical tabs that were below the content are now to the right, in a style more like wordpress.  There's also a built in WYSIWYG (ckeditor), that includes inline editing capabilities.

Removed

They've removed a few features that you're used to in Drupal 7, but are moving them to contrib modules:

  • Dashboard
  • Poll
  • Blog
  • Trigger
  • Profile
  • Garland
  • IE 6/7 Support

Responsive

They've added a lot of things into core to accomplish a mobile first approach.  Breakpoint.js, a responsive table solution, responsive images, responsive versions of all the themes, touch event support, and a responsive preview of what it will look like.  They've also added a mobile friendly admin toolbar and are working on getting block management simpler.  One nice effect of this is that blocks can be placed into multiple regions by default.

Configuration

It has a new configuration API with a YAML backend to separate the configuration from the database.  This solves a common problem of moving just configuration changes between environments without blowing away the whole database.  It also comes with a dependency manager that may be helpful for downloading dependent libraries in the future called Composer.

Compatibility

They've baked in some cross browser compatibility features (modernizer and normalize.css).

Performance

Edge side includes are now part of core, allowing partial page caching even during authenticated sessions.

Entity / Fields

While the work with entities is still very much underway, they're reworking how that's all being accessed and trying to improve the api into a typed data api.  They also improved the blocks and standard contact form module to use actual fields.  New field types of telephone and email are baked into core.

Translations

Entity translations are now in core, allowing a better translation infrastructure.

Accessibility

A number of accessibility improvements have been made, from adding a help guide to pages for new users, to better consistency on tabbing and aural feedback.

Javascript

A number of javascript libraries is now in Core, notabley backbone.js, displace, debounce and throttle.  There is also a new modal API and new javascript coding standards.

Development

Drupal's move to symfony has given it a large amount of new plugins and libraries to use.  Things are moving to the plugin, event, and serialization API.  There's now dependency injection to allow for easier passing of configurations.  Routing is used instead of hook_menu.  And guzzle can be used to make HTTP connections.

Another big initiative is adding Twig, which gives control of the front end back to front end developers and keeps them out of PHP.  It also is removing a lot (like 3/4) of the existing rendering / processing engines.  This streamlines it a lot, but there's a lot of performance considerations to take into account.  The primary push is to move tpl.php files to twig files, then replace all the theme functions and refactor the render API.

Future

This is still changing at this point, but you can find updates on these pages:

They are already making lists of things for drupal 9, such as using Symfony's asset management, and other libraries, as drupal 8 is nearing code freeze and a lot of them are far from being added.