function HookCollectorKeyValueWritePass::process
File
-
core/
lib/ Drupal/ Core/ Hook/ HookCollectorKeyValueWritePass.php, line 26
Class
- HookCollectorKeyValueWritePass
- Stores hook implementations in keyvalue and clears cache.
Namespace
Drupal\Core\HookCode
public function process(ContainerBuilder $container) : void {
$hookData = $container->getParameter('.hook_data');
$keyvalue = $container->get('keyvalue')
->get('hook_data');
assert($keyvalue instanceof KeyValueStoreInterface);
$keyvalue->setMultiple($hookData);
$container->get('cache.bootstrap')
->delete('hook_data');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.