JavaScript tests under Drupal 8 with Chrome.
Jean Valverde - Code breeder since 2006
Lead Web / Php developer, Drupal expert with some Python and Devops
You can check and evaluate my work or my modules and feel free to contact me for a quote on any Drupal related project.
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, 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, 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...
Tags
By admin, 11 August, 2015
Drupal 7 uses PhpTemplate as theme engine. The system is simple, each module implements its theme functions ( HOOK_theme ) to generate a markup, in most cases HTML , in a direct way or using a template file ( XXXXX.tpl.php ). The function of the theme also permits to the module to set variables which, after processing will be used in HTML display. These are 2 options for this theme function Either...