Let’s dive into a simple solution to ease your contribution process to Drupal modules & themes.

For a fair amount of time I’m contributing to Drupal in the form of Contributed Modules, patches to Core and Documentation.

During my journey as a contributor I have been stuck trying to solve some simple problems:

  • How to contribute to many modules without having to Bootstrap a Drupal project for each of them ?
  • How to tests those modules in a different version of Drupal to ensure compatibility and stability ?
  • How could I accelerate my development by isolating my modules from each…

In this article, I will not explain how to create a custom Autocomplete using the Drupal 8 Form API — which should only be used on custom Form using the Drupal Admin UI.

Here I will try to expose you a step-by-step guide which explains how you can create a custom Autocomplete Field Widget using the Drupal 8 Form API Core feature — An autocomplete that you must only use in your Drupal Admin UI form (Nodes, Taxonomies, …).

This tutorial may help you in the following case: Create a custom Drupal Entity Field Widget Autocomplete that fetch data outside…


Parfois, lorsque l’on travaille avec des données JSON, il est utile de pouvoir compter le nombre d’éléments existant dans la source de donnée JSON.

Par exemple, lorsque vous devez définir l’architecture nécessaire à l’indexation d’éléments provenant d’une API. Afin de comprendre la taille de la source à traiter et donc de l’impact sur l’indexation (Elasticsearch, Database, Flatfile, …).

Je prends pour exemple une prospection récente où, surprise, la source de donnée API retournait un payload JSON de 8.5Mo — contenant plusieurs milliers d’entrées — c’était tout simplement impossible à traiter manuellement. …


As a developer, I’m a big fan of having an automated deployment process. It’s really into the web development philosophy build once, and deploy everywhere.

When I prepare a release or just having a development demo, I don’t want to struggle with deployment. I don’t want to even think about it.
I want a solution wrote once, bound with a Continuous Deployment System (TravisCI, CircleCI, GithubActions or any other …), easy to maintain, reliable and proven to be working well by the Community.

In the past, I have used various home-made shell scripts to perform those tasks.

For the last…


What is parameters-upcasting? How does it work for REST resources? How can you implement it?

By reading those lines, I presume readers already know how to create a custom REST resources and may already know how to implement a custom parameters-upcasting for Routes & Controllers.

This article will give you an in-depth how-to of upcasting for Drupal 8 REST resources.

We will briefly explore the theory and when parameters-upcasting should be used.

Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
- Martin Fowler

During my exploration of Drupal 8 and…


You probably already know, I live in Switzerland and — beside chocolate & cheese — this country has one another singularity: 4 official national languages. As a result, more than 90% of our web creations need to be localised in at least 2 languages.
This peculiarity makes us experts in the creation of multilingual websites.

Switzerland is a small, steep country, much more up and down than sideways, and is all stuck over with large brown hotels built on the cuckoo style of architecture.
— Ernest Hemingway

At Antistatique, we work under the DSP model — Development, Staging, and Production…


What is refactoring? Should you redo your whole project? How can you proceed?

This article will give you an overall explanation of refactoring in software development.
We will explore the theory and then present some examples from real life.
But, as I always say, no explanation is complete without clarifying the benefits and challenges first.

Let’s get to it, shall we?

What is it?


In this article, I will not explain how to customize/alter an Autocomplete Field Widget — which should only be used on Form using the Drupal Admin UI.

Here I will try to expose you a step-by-step guide which explains how you can create a custom Autocomplete field using the Drupal 8 Form API Core feature — An autocomplete that you could use in your own Drupal frontend applications.

If you are looking for resources which explains how to implement Views to alter an Autocomplete Field, please refer to this excellent guide.

In the other hand, if you are looking for…


Cet article est repris de mon article de Blog pour Antistatique — Agence Web Lausannoise — où j’office en tant que Full Stack Web Developer.

Depuis quelque temps on me demande si l’architecture multisite sur Drupal 8 est une option à considérer pour certains projets.
Au risque de lancer un pavé dans la mare - de mon expérience - une instance Drupal multisite est rarement une bonne idée, encore plus avec Drupal 8.

À la fin de cet article, vous serez à même de répondre à la question “Dois-je considérer une architecture multisite pour mon/mes projet(s) Drupal 8 ?".

Petit…


Did you know that Webmardi turns 10 this year?
During this time, it’s been the platform for 82 Web events in Switzerland.

2019 brings a wind of change — the most significant during all these years. Want to know why? Dive into the story!

Kevin Wenger

Swiss Web Developer & Open Source Advocate @antistatique | @Webmardi organizer | Speaker | Author | Drupal 8 Core contributor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store