You are here

Example: Cron in Examples for Developers 8

Same name and namespace in other branches
  1. 7 cron_example/cron_example.module \cron_example
  2. 3.x modules/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

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 cron_example/cron_example.module Implements hook_cron().

Classes

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