public function Drupal8::configGet in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::configGet()
- 7.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::configGet()
Gets configuration value.
Overrides Framework::configGet
File
- api/
src/ Framework/ Drupal8.php, line 209
Class
- Drupal8
- Drupal 8-specific code.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function configGet($name, $default = NULL) {
// @phpstan-ignore-next-line
$candidate = \Drupal::config('realistic_dummy_content_api')
->get($name);
return $candidate ? $candidate : $default;
}