slideshare quotation-marks triangle book file-text2 file-picture file-music file-play file-video location calendar search wrench cogs stats-dots hammer2 menu download2 question cross enter google-plus facebook instagram twitter medium linkedin drupal GitHub quotes-close
Butterfly spinner

It feels like I'm getting back into the swing of things this week!

I fixed an issue caused by Taxonomy Access Control Lite: the module implements hook_query_TAG_alter and it was modifying term_access tagged queries. The upshot of this was that query fetching options for an exposed filter on a View page was returning duplicates (in some cases). It certainly took some tracking down but I was able to fix it and get it deployed!

I worked on a number of translation issues for a site that presents content in English and Welsh... when fixing a translation issue with pagers, I was amused to learn that Last in Welsh is Olaf... I totally love the idea of summer... and sun.

I also swapped out some occurrences of:

$variables['field_date'] = date('F j, Y', strtotime($node->field_publish_date->value));


$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
$variables['field_date'] = \Drupal::service('date.formatter')->format(strtotime($node->field_publish_date->value), 'custom', 'j F Y', NULL, $language);

so that dates rendered in the language selected by the user.

Alongside work, homeschooling is in full swing: amongst other things, we made a wind-spinner decorated with colourful butterflies!

More from the developer cabin