function CommonTestHooks::cron
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/common_test/src/Hook/CommonTestHooks.php \Drupal\common_test\Hook\CommonTestHooks::cron()
Implements hook_cron().
System module should handle if a module does not catch an exception and keep cron going.
Attributes
See also
common_test_cron_helper()
File
-
core/
modules/ system/ tests/ modules/ common_test/ src/ Hook/ CommonTestHooks.php, line 67
Class
- CommonTestHooks
- Hook implementations for common_test.
Namespace
Drupal\common_test\HookCode
public function cron() : void {
throw new \Exception('Uncaught exception');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.