function CommonTestCronHelperHooks::cron

Implements hook_cron().

Function common_test_cron() throws an exception, but the execution should reach this function as well.

See also

common_test_cron()

File

core/modules/system/tests/modules/common_test_cron_helper/src/Hook/CommonTestCronHelperHooks.php, line 22

Class

CommonTestCronHelperHooks
Hook implementations for common_test_cron_helper.

Namespace

Drupal\common_test_cron_helper\Hook

Code

public function cron() {
    \Drupal::state()->set('common_test.cron', 'success');
}

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