Development

Drupal 8 has a built-in class which allows to sort (multidimensional) arrays very easily. You can use this class like this: uasort($form['elements'], [ '\Drupal\Component\Utility\SortArray',...
If you used Acquia Dev Desktop before, you may have noticed that the vhost.conf file is generated automatically every time Acquia Dev starts up. This means the Apache settings are fixed. This makes it...
Drupal 8 provides a basic REST resource for every known entity in the system. For most use cases this is enough to get you going, but what if the default implementation doesn’t suffice your needs? To...
Drupal 8 uses some of the Symfony2 components. One of those components is the EventDispatcher . This component provides a system to register events. Afterwards other modules and plugins can execute...
Updating an existing Drupal 8 installation to a Composer installation is actually pretty easy. There are already a few scripts out there that will help you achieve this. By following this step to step...
It's very easy to register new users using REST in Drupal 8. This functionality was introduced in Drupal 8.3. Let's say you are building an app and you want to use Drupal as your back-end. The first...
Creating a node with REST has never been this easy in Drupal 8, in this blog post I'll show you how to do it. The first thing you would need to do is enable all the required modules (/admin/modules)....
In this blog post you will learn how to create internal and external links in Drupal 8. In Drupal 7 websites we used to create links by using the l() function but in Drupal 8 this changed. Internal...
In this blog post you will learn why Acquia Dev Desktop is a must have when working on Drupal websites. It all began a few years ago when I started developing Drupal websites using MAMP . The free...