A utility belt for Rad developers.
Assuming you're working in the project root of a Drupal 8 composer workflow project
- Add this to your
composer.json
'srepositories
array:
{
"url": "https://github.com/radcampaign/rad_tools",
"type": "git"
}
- Require and install like any other Drupal module.
$ composer require radcampaign/rad_tools
$ cd web
$ drush en rad_tools
- Add
use Drupal\rad_tools\RadTools;
at the top of your file. - Go wild (read
src\RadTools.php
to learn about the functions available.