Need an array of user roles in your Drupal 8 site? Say goodbye to user_roles(), say hello to user_role_names(). This function will return an associative array with the role id as the key and the role name as the value.
Looking for how to create new module permissions in Drupal 8? Look no further, $module.permissions.yml to the rescue! In Drupal 8 permissions are now defined in $module.permissions.yml file instead of using hook_permission().
Boost the performance of your Drupal 7 website, improve usability and help with SEO by making content load via AJAX in just a few steps. Drupal AJAX is a cinch to implement—as it should be since core is loaded with it. In just a few of steps I’ll show you how to use jQuery and … Read article
Salesforce Suite is an easy way to connect Drupal to Salesforce, which allows non-technical staff to create extensive reports — learn how to integrate it.
A feature I regularly use in WordPress development are shortcodes. I needed the same functionality in Drupal. Like most things I’ve found with Drupal, it’s not as easy or clear on how to go about it. No need to fret though, I’ll walk you through how to get ahead of the learning curve and easily create custom tokens.