protected function KernelTestBase::getHooksInfo in Forms Steps 8
Returns the entity_test hook invocation info.
Return value
array An associative array of arbitrary hook data keyed by hook name.
File
- tests/
src/ Kernel/ KernelTestBase.php, line 129
Class
- KernelTestBase
- Defines an abstract test base for kernel tests.
Namespace
Drupal\Tests\forms_steps\KernelCode
protected function getHooksInfo() {
$key = 'entity_test.hooks';
$hooks = $this->state
->get($key);
$this->state
->set($key, []);
return $hooks;
}