public static function Caster::castConfig

8.0.x Caster.php public static Caster::castConfig($config, $array, $stub, $isNested)
master Caster.php public static Caster::castConfig($config, $array, $stub, $isNested)

Casts \Drupal\Core\Config\ConfigBase classes.

File

lib/Drush/Psysh/Caster.php, line 70
Contains \Drush\Psysh\Caster.

Namespace

Drush\Psysh

Class

Caster
Caster class for VarDumper casters for the shell.

Code

public static function castConfig($config, $array, $stub, $isNested) {
  if (!$isNested) {
    foreach ($config->get() as $property => $value) {
      $array[BaseCaster::PREFIX_VIRTUAL . $property] = $value;
    }
  }

  return $array;
}