You are here

function config_test_config_test_create in Drupal 8

Same name and namespace in other branches
  1. 9 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
Fake third-party hook implementations for ConfigTest entities.

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);
}