The Drupal 8 plugin system – part 1

Plugins are swappable pieces of code in Drupal 8. To see how different they are from hooks, let’s take an example where we want to create a new field type. In Drupal 7, this involves: Providing information about the fieldhook_field_info – describes the field, adds metadata like label, default formatter and widget.hook_field_schema – resides in the module’s […]

Annotations in Drupal 8

Annotations are PHP comments which hold metadata about your function or class. They do not directly affect program semantics as they are comment blocks. They are read and parsed at runtime by an annotation engine. Annotations are already used in other PHP projects for various purposes. Symfony2 uses annotations for specifying routing rules. Doctrine uses […]

Developing an admin theme in Drupal

From the very beginning, I used to wonder if there are any fancier alternatives to the “drupal blue” interface we take for granted in Drupal admin themes. I then discovered the best fit(so far) in Rubik. Since Rubik, not much has happened in admin theme space. I’d rate shiny as a close second. How much effort goes into […]