Since I work with Drupal, I had a lot of project, with some case of third party application maintenance. One of the most consistent problem is the very low quality of the code, whatever it's a big company or a small client, there is always a lack of technical management. Drupal the culprit? Drupal is very flexible and is probably providing the most powerful site building in the industry. But...
drupal 8
By Jean, 23 July, 2019
Gitlab-CI introduced a flexible and powerful CI solution. My project Giltab CI fo Drupal 8 is meant to ease the integration with a Drupal 8 project. It is now ready to handle a single module or theme and provide a full pipeline for your testing. Here is a brief article to integrate Gitlab-CI with your module in probably less than 10 minutes! This CI includes Drupal testing (Unit, Functional...
By Jean, 9 February, 2019
JavaScript tests under Drupal 8 with Chrome.
By Jean, 22 January, 2019
Here is an almost typical use case when developing custom code for Drupal 8. A third party module declare a controller with a method that you want to override because you need to change the logic and there is no practical way to do it in the module (could be a hook). But this class implements ControllerBase with dependency injection, (and override most of the methods in ControllerBase, but this is...
By Jean, 22 October, 2018
Building enough Drupal 8 websites I ended up applying always the same basic set of code in my Bootstrap sub theme. Preprocess hooks are a common way in Drupal to add or manipulate variables that you can use in your Twig templates files. Suggestions hooks is a common way in Drupal 8 to extend the templates you can use for any part of your code. Here is a snippet of this, copy this in your theme...
By Jean, 4 January, 2016
Working on the update of my website in Drupal 8, I developed two modules with image formater to display a carousel and a gallery using Bootstrap with Drupal 8. My Drupal 8 modules The carousel image formater uses the template of the Boostrap theme to display a carousel. Nothing particular in this module I only got a small difficulty to get the attributes of the picture (title and alt) without...