With the release of Drupal 8 comes the new CLI to generate boilerplate code, interact and debug Drupal. It can be a little bit confusing if you’re coming from Drush, just I’ve put together a list of useul Drupal Console commands.
This is a cool feature. You can mark files as “yes, I know this is tracked by Git, but I don’t want my changes committed.”
For example, there’s a config file that’s checked in. You need to make local edits to test with. However, you often accidentally commit those changes (you forget). But you could tell Git to ignore changes in this file. Let’s say we have a file config.php that we want to edit locally and leave edited.
Need an array of user roles in your Drupal 8 site? Say goodbye to
user_roles(), say hello to
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
Learn to track page performance, user behaviors, personas and more with the power of GA Custom Dimensions.
Creating audience segments is one of the most important things you can do with an analytics tool. When segmentation rules do a good job of highlighting motivations of visitors, behaviors of each segment help make sites become more relevant to each group. This will increase the likelihood that your site will deliver on your goals.
GA already lets you segment more than 130 dimensions. With Universal Analytics, Custom Dimensions (aka. Custom Variables) can be used to track even more. Once you know how to use them, they’ll become a powerful tool in your analytic arsenal.