You are here

public function RoleConfigurationHandler::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/RoleConfigurationHandler.php, line 23

Class

RoleConfigurationHandler

Namespace

Configuration\Handlers

Code

public function getIdentifiers() {
  $identifiers = array(
    'anonymous_user' => t('Anonymous user'),
    'authenticated_user' => t('Authenticated user'),
  );
  foreach ($this->configuration_manager
    ->drupal()
    ->role_export_roles() as $role) {
    if ($role->rid > 2) {
      $identifiers[$role->machine_name] = $role->name;
    }
  }
  return $identifiers;
}