You are here

common_test_cron_helper.module in Zircon Profile 8.0

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().
 *
 * 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

Namesort descending Description
common_test_cron_helper_cron Implements hook_cron().