function CommonTestHooks::cron

Implements hook_cron().

System module should handle if a module does not catch an exception and keep cron going.

See also

common_test_cron_helper()

File

core/modules/system/tests/modules/common_test/src/Hook/CommonTestHooks.php, line 116

Class

CommonTestHooks
Hook implementations for common_test.

Namespace

Drupal\common_test\Hook

Code

public function cron() {
    throw new \Exception('Uncaught exception');
}

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