Drupal consultant
What are the core skills, tools and practices you will need to be Drupal 8 ready? How do you get them now? This summary is a companion to PreviousNext's DrupalCon presentation "Drupal 8 Ready".
Twig is a template language written for PHP. It replaces PHPTemplate for template files.
PHP was originally written as a kind of template language, however it is both verbose and difficult to learn. Twig is designed specifically for the purpose of templating, and brings a number of improvements vs normal PHP, including a concise template syntax, escaping and filtering functions, and other benefits.
Backbone is a JavaScript library with a RESTful JSON interface and is based on the model–view–presenter (MVP) application design paradigm. Backbone is known for being lightweight, as its only dependency is on one JavaScript library, Underscore.js. It is designed for developing single-page web applications, and for keeping various parts of web applications (e.g. multiple clients and the server) synchronized.
Backbone makes Drupal entities and views available from within JavaScript. This allows you to build more complex JavaScript based web applications.
Simply, responsive design is the practice of providing a seamless, single viewing experience across multiple platforms and devices.
Not so much a new “feature”, as a maturing design idiom. the majority of Drupal’s components are now compatible with Responsive practices, and product owners are going to expect it.
Drupal 8 introduces two new JavaScript accessibility features to improve accessibility in specific cases. The first is Drupal.announce(), which can be used to turn text into speech easily. The second is the tabbingManager, which handles restricting tabbing to specific element sets. In core, for example, this is used to restrict tabbing to to the overlay
This latter part is intended to be available in contrib, however a quick scan reveals no contenders currently. If you do find yourself with a Drupal 8 site which needs to support 8 (and if you work with government that may yet happen), then a workaround will be required.
CSS must now following coding standards, like the rest of Drupal. These cover formatting, architecture, and file organisation.
Coding standards help us in several ways. They help set a baseline for creating new styles, they ensure that styles are consistent, and they reduce changes to functional, rather than formatting, alterations.
When written well, object-oriented code is considerably more powerful, easier to debug, and more flexible. Apart from an early foray into named PHP Classes in early versions of Drupal, Drupal has generally stayed away from object-oriented PHP. Thats all about to change in Drupal 8, which introduces a significant amount of object-oriented code, where previously there was procedural.
Themers will benefit from a little bit of knowledge about PHP Classes and Namespaces.
Find out more