function ConfigTestHooksHooks::configTestCreate

Implements hook_ENTITY_TYPE_create() for 'config_test'.

File

core/modules/config/tests/config_test/src/Hook/ConfigTestHooksHooks.php, line 26

Class

ConfigTestHooksHooks
Hook implementations for config_test.

Namespace

Drupal\config_test\Hook

Code

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

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