Skip to main content
ComputerMinds

Articles · Page 2

Drupal 8

Drupal 8 Event Subscribers - the successor to alter hooks

In Drupal 7 if you wanted to tweak the functionality of an existing function then an alter hook was your best friend, but in Drupal 8 it's "all change!"Read article →

Checking if the current page is the homepage in Drupal 8 - not using drupal_is_front_page

We will keep this one short and sweet. There is quite a bit of documentation pointing to the fact that drupal_is_front_page() still exists in Drupal 8 ... it doesn't!Read article →

Saving the web with responsible websites

TL;DR: If the internet reflects society, what does your content say about you? Having flexible and accessible content will allow you to adapt to how people consume your content.Read article →

Drupal 8: Creating a custom field - Part 3: Field formatter

This is part 3 in my series of articles about creating a custom field. I recommend reading Part 1: Field type and Part 2: Field widget first, if you have not done so already.Read article →

Drupal 8: Creating a custom field - Part 2: Field drupal widget

This is part 2 in my series of articles about Drupal widgets, and specifically creating a custom field. I recommend reading Part 1: Field type first, if you have not done so already.Read article →

Drupal 8: Creating a custom field - Using a custom field

Having written articles on how to create a Drupal 8 field type, field widget and field formatter I thought that now is the time to explain why you might want to create a custom field type. More specifically, why I have created a custom field.Read article →

Drupal 8: Creating a custom field - Part 1: Field type

I have been experimenting with the Alpha release of Drupal 8 and so I'm sharing some of my experiences so that you can avoid the pitfalls I have encountered.Read article →