Creating new EBT modules

08/02/2023, by Ivan

Easiest way to create a new EBT module is Drush command (for Drush 12+). To use this command, you need to enable EBT Core Starterkit module:

EBT Starterkit

After that generator EBT modules will be available:

drush generate ebt:module

Start machine name with ebt_* prefix, it's required for working all EBT modules.

EBT module generate

You can also use EBT Starterkit in EBT Core modules folder. Just rename all ebt_starterkit in files with machine name of your new EBT module.

https://www.drupal.org/project/ebt_core

Or copy EBT Text module and replace machine name there.

https://www.drupal.org/project/ebt_text

Because, it's simplest EBT module and it contains all basic EBT settings. 

Creating EBT Module step by step