Composer is Drupal 8's Depencency

Google for 'Drupal 8 dependency'. You will find nothing relevant. Drupal 8 does not have dependencies. It's a self-contained CMS. You can even go and download Drupal 8 from the official site in a zip or tar.gz file. Right? Wrong. Drupal 8 has an undeclared dependency, Composer. And the fact that it is undeclared can cost an unsuspecting developer many a nerve. You can install and build a Drupal 8 site from an archive or git repo pull, but very soon you will discover, that there are many modules that declare external libraries as dependencies in their composer.json file.

Is Drupal 8 more complex and expensive?

I have watched the videos from DrupalCon Dublin 2016, so graciously uploaded by the Drupal Association. In a few of those videos, I have heard the speakers complain about two things in Drupal 8: it's complexity and it's development cost. One speaker even voiced a number of 25% of development cost increase. I have paused at that point and gave it some thought, because I felt somewhat dubious about this. Yes and no.

Drupal 8 with Backbone.js

I have just completed my first Backbone.js app with Drupal 8. It has been a new experience for me. I needed to build a solution that related to the views filters and content listings. As you probably know, Drupal 8 content listings are powered by views now, which allows users to configure filters and add fields to the table of content. So, when different editors work with different filters and columns, they want to hide some and show only those that they need. My task was to build a solution that allowed each user with permissions to select, which filters and which table columns they want to see.

My second Drupal 8 site is live!

Now, I am not going to blog post about every new site I make (and I make lots of them), but I can't help blogging about this one, since this one was very hard and very gratifying. I have taken this task when contacted by a Stuttgart company named COBI to move their static site to Drupal 8. This was the same month when Drupal 8 just got released, so you can imagine my skepticism.

Drupal 8 - Display submenu in a block

To edit and place a submenu in a block in Drupal 8, place this code in the block plugin class file:


   * {@inheritdoc}
public function build() {
$menu_tree = \Drupal::menuTree();
$menu_name = 'main';
$parameters = new MenuTreeParameters();
$tree = $menu_tree->load($menu_name, $parameters);
$manipulators = array(
'callable' => 'menu.default_tree_manipulators:checkAccess'),
'callable' => 'menu.default_tree_manipulators:generateIndexAndSort'),


View the whole post to see the rest of this code.

Drupal 8 - Developer’s and Themer's Impressions

I have been working on two Drupal 8 projects recently, neither of which have been published yet. One is a static site to Drupal 8 migration, that is still under way, and another a Drupal 6 to Drupal 8 upgrade project, that has been completed. Now that Drupal 8 has become stable and more modules have been converted to it, I am happy to say, that Drupal 8 is quite good and has some very good benefits for both a developer and a themer, as well as some rough edges.


Subscribe to RSS - blogs