You are here

protected function ConfigIgnoreHookTest::getAlterCallCount in Config Ignore 8.3

Get call count of alter hook.

Return value

int|null Call count, or NULL if not called.

1 call to ConfigIgnoreHookTest::getAlterCallCount()
ConfigIgnoreHookTest::testAlterHookStaticCache in tests/src/Functional/ConfigIgnoreHookTest.php
Test alter hook values are cached unless invalidated.

File

tests/src/Functional/ConfigIgnoreHookTest.php, line 79

Class

ConfigIgnoreHookTest
Test hook implementation of another module.

Namespace

Drupal\Tests\config_ignore\Functional

Code

protected function getAlterCallCount() {
  return \Drupal::state()
    ->get('hook_config_ignore_settings_alter__call_count');
}