You are here

protected function ConfigActionsModuleTest::getConfig in Config Actions 8

Helper function to load a specific configuration item

Parameters

string $id:

Return value

array of config data

1 call to ConfigActionsModuleTest::getConfig()
ConfigActionsModuleTest::testEnable in tests/src/Kernel/ConfigActionsModuleTest.php
Test enabling module.

File

tests/src/Kernel/ConfigActionsModuleTest.php, line 54

Class

ConfigActionsModuleTest
test the ConfigActions module

Namespace

Drupal\Tests\config_actions\Kernel

Code

protected function getConfig($id) {
  return \Drupal::service('config.factory')
    ->get($id)
    ->get();
}