function api_tests_install in Lightning API 8
Same name and namespace in other branches
- 8.2 tests/modules/api_tests/api_tests.install \api_tests_install()
Implements hook_install().
File
- tests/
modules/ api_tests/ api_tests.install, line 6
Code
function api_tests_install() {
$config = \Drupal::configFactory()
->getEditable('lightning_api.settings');
\Drupal::state()
->set('api_tests', $config
->get());
$config
->set('entity_json', TRUE)
->save();
}