You are here

protected function RoleConfiguration::prepareBuild in Configuration Management 7.2

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

Overrides Configuration::prepareBuild

File

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

Class

RoleConfiguration

Namespace

Drupal\configuration\Config

Code

protected function prepareBuild() {
  foreach (role_export_roles() as $role) {
    if ($role->machine_name == $this
      ->getIdentifier()) {
      $this->data = $role;
      unset($role->rid);
      break;
    }
  }
  return $this;
}