class CommonTestCronHelperHooks

Hook implementations for common_test_cron_helper.

Hierarchy

Expanded class hierarchy of CommonTestCronHelperHooks

File

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

Namespace

Drupal\common_test_cron_helper\Hook
View source
class CommonTestCronHelperHooks {
    
    /**
     * Implements hook_cron().
     *
     * Function common_test_cron() throws an exception, but the execution should
     * reach this function as well.
     *
     * @see common_test_cron()
     */
    public function cron() {
        \Drupal::state()->set('common_test.cron', 'success');
    }

}

Members

Title Sort descending Modifiers Object type Summary
CommonTestCronHelperHooks::cron public function Implements hook_cron().

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