You are here

Example: Cron in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 cron_example/cron_example.module \cron_example
  2. 7 cron_example/cron_example.module \cron_example

Example using Cron API, including hook_cron() and @QueueWorker plugins

This example is part of the Examples for Developers Project which you can download and experiment with at http://drupal.org/project/examples

Parent topics

File

modules/cron_example/cron_example.module, line 8
Demonstrates use of the Cron API in Drupal - hook_cron().

Functions

Namesort descending Location Description
cron_example_cron modules/cron_example/cron_example.module Implements hook_cron().

Classes

Namesort descending Location Description
CronExampleTest modules/cron_example/tests/src/Functional/CronExampleTest.php Test the functionality for the Cron Example.