Composer has brought the PHP community a long way, making dependency management much more convenient. With the advent of Drupal 8.0.0-rc1, even more people are going to be using composer indirectly, whether they realize it or not. This is because Drupal 8 uses Composer to manage its external libraries. Drush also uses Composer to manage dependencies, which means you can get spectacularly bad results, including some very difficult to diagnose crashes, unless all of Drush’s dependencies are very strictly compatible with all of Drupal’s dependencies.
If you need to check for a specific role such as 'administrator' in Drupal 8, the process is changed from past versions. The following is an example of how you'd check for an administrator role when rendering the user edit form. You might do this if you were unsetting form variables based on role:
It's almost here, the first DrupalCon in Asia. As front enders, we code and build themes. We closely work with project managers, content strategists, marketers alike. This year, at DrupalCon Asia, we're looking forward to a track that inspires, challenges, and excites us.
In this article #6 of Drupal Commerce tutorial series, you will learn how to configure your site's checkout process.