You are here

interface CronInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/CronInterface.php \Drupal\Core\CronInterface

An interface for running cron tasks.

Hierarchy

Expanded class hierarchy of CronInterface

All classes that implement CronInterface

See also

https://www.drupal.org/cron

3 files declare their use of CronInterface
AutomatedCron.php in core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php
CronController.php in core/modules/system/src/CronController.php
CronForm.php in core/modules/system/src/Form/CronForm.php

File

core/lib/Drupal/Core/CronInterface.php, line 10

Namespace

Drupal\Core
View source
interface CronInterface {

  /**
   * Executes a cron run.
   *
   * Do not call this function from a test. Use $this->cronRun() instead.
   *
   * @return bool
   *   TRUE upon success, FALSE otherwise.
   */
  public function run();

}

Members

Namesort descending Modifiers Type Description Overrides
CronInterface::run public function Executes a cron run. 2