common_test_cron_helper.module
Same filename in other branches
- 7.x modules/simpletest/tests/common_test_cron_helper.module
- 9 core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module
- 10 core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module
- 11.x core/modules/system/tests/modules/common_test_cron_helper/common_test_cron_helper.module
Helper module for the testCronExceptions in addition to common_test module.
File
-
core/
modules/ system/ tests/ modules/ common_test_cron_helper/ common_test_cron_helper.module
View source
<?php
/**
* @file
* Helper module for the testCronExceptions in addition to common_test module.
*/
/**
* Implements hook_cron().
*
* Function common_test_cron() throws an exception, but the execution should
* reach this function as well.
*
* @see common_test_cron()
*/
function common_test_cron_helper_cron() {
\Drupal::state()->set('common_test.cron', 'success');
}
Functions
Title | Deprecated | Summary |
---|---|---|
common_test_cron_helper_cron | Implements hook_cron(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.