function config_test_config_test_create in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config/tests/config_test/config_test.module \config_test_config_test_create()
Implements hook_ENTITY_TYPE_create() for 'config_test'.
File
- core/
modules/ config/ tests/ config_test/ config_test.module, line 23 - Provides Config module hook implementations for testing purposes.
Code
function config_test_config_test_create(ConfigTest $config_test) {
if (\Drupal::state()
->get('config_test.prepopulate')) {
$config_test
->set('foo', 'baz');
}
}