function config_test_config_test_create

Same name and namespace in other branches
  1. 9 core/modules/config/tests/config_test/config_test.hooks.inc \config_test_config_test_create()
  2. 8.9.x core/modules/config/tests/config_test/config_test.hooks.inc \config_test_config_test_create()
  3. 10 core/modules/config/tests/config_test/config_test.hooks.inc \config_test_config_test_create()

Implements hook_ENTITY_TYPE_create() for 'config_test'.

File

core/modules/config/tests/config_test/config_test.hooks.inc, line 24

Code

function config_test_config_test_create(ConfigTest $config_test) {
    if (\Drupal::state()->get('config_test.prepopulate')) {
        $config_test->set('foo', 'baz');
    }
    _config_test_update_is_syncing_store('create', $config_test);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.