You are here

public function PermissionConfigurationHandler::getIdentifiers in Configuration Management 7.3

Returns the configuration identifiers handled by this instance.

Return value

array An array of identifiers.

Overrides ConfigurationHandler::getIdentifiers

File

src/Handlers/PermissionConfigurationHandler.php, line 72

Class

PermissionConfigurationHandler

Namespace

Configuration\Handlers

Code

public function getIdentifiers() {
  $return = array();
  $permissions = $this->configuration_manager
    ->drupal()
    ->module_invoke_all('permission');
  foreach ($permissions as $permission => $info) {
    $id = preg_replace("/[^a-zA-Z0-9]+/", "_", $permission);
    $return[$id] = $permission;
  }
  return $return;
}