You are here

public function RoleSplitFilter::filterReadMultiple in Config Role Split 8

File

src/Plugin/ConfigFilter/RoleSplitFilter.php, line 81

Class

RoleSplitFilter
Provides a RoleSplitFilter.

Namespace

Drupal\config_role_split\Plugin\ConfigFilter

Code

public function filterReadMultiple(array $names, array $data) {
  foreach ($names as $name) {
    if ($this
      ->isManagedRole($name)) {

      // Filter managed roles individually.
      $data[$name] = $this
        ->filterRead($name, $data[$name]);
    }
  }
  return $data;
}