Following up on my Drupal 9 article for overriding experimental Onlivero sub-theme, now Olivero is stable in Drupal 10 and has some changes.
Articles
By admin, 23 March, 2022
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...
By admin, 30 December, 2021
With Drupal 9 we have access to the class confirmFormBase which extends FormBase . This class is used to quickly add a confirm step to your form. Common usage is to confirm a deletion: "Are you sure you want to delete node 23?" The basic usage is to create a new route for the confirm form, living side of your form, and use route parameter to pass an id. One form with confirm step included But here...
Tags
By admin, 16 December, 2021
By admin, 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 admin, 9 February, 2019
JavaScript tests under Drupal 8 with Chrome.
Tags
By admin, 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...
By admin, 23 December, 2018
Image
Drupal 8 et Gitlab-ci
Dans le cadre du travail en livraison continue, il existe de nombreuses solutions de CD . Voici un exemple d'utilisation de Gitlab-CI avec Drupal 8 . Intégration / Livraison continue Le service d'intégration continue Gitlab-CI fait parti des derniers arrivant et propose une solution complète, très extensible et pour l'instant sans coût pour mettre en place votre flux de travail avec Drupal 8. Le...
By admin, 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 admin, 3 January, 2018
Cela fait maintenant quelques temps que j'utilise et maintiens ma propre solution de développement Drupal 8 avec Docker : Drupal 8 Docker Development Plutôt axé sur un usage sous Linux ou Mac, Docker compose permet de mettre en place un environnement complet en séparant chaque services pour plus de flexibilité. Par exemple mon projet inclus Apache, Php 7, MySQL, PostgreSQL, Memcache, Solr, Redis...