Role Provisioner

Component ID

2443887

Component name

Role Provisioner

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

576

Component created

Component changed

Component body

This module provides a base for handling roles and permissions. The RoleProvisioner is expected to be extended through a another module. Your module will provide the configuration YAMLs and a class to ensure they're brought into scope.

Dependencies

  • XAutoload (PSR-4 autoloading)
  • Libraries (SpyC YAML parser)

You can make sure your site's roles and permissions are in proper configuration by running the ensurePermissions() method during an install, upgrade, or manual method call.

function role_provisioner_install() {
  $handler = new Drupal
ole_provisionerRoleProvisioner();
  $handler->ensurePermissions();
}

NOTE: This module has a makefile for the Spyc library. It assumes you're using Drush 7+