You are here

public static function RoleConfiguration::getAllIdentifiers in Configuration Management 7.2

Overrides Drupal\configuration\Config\Configuration::getAllIdentifiers().

Overrides Configuration::getAllIdentifiers

File

lib/Drupal/configuration/Config/RoleConfiguration.php, line 53
Definition of Drupal\configuration\Config\RoleConfiguration.

Class

RoleConfiguration

Namespace

Drupal\configuration\Config

Code

public static function getAllIdentifiers($component) {
  $identifiers = array();
  foreach (role_export_roles() as $role) {
    if (!empty($role->machine_name)) {
      $identifiers[$role->machine_name] = $role->name;
    }
  }
  return $identifiers;
}