Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CronInterface.php

interface CronInterface

An interface for running cron tasks.

Hierarchy

  • interface \Drupal\Core\CronInterface

Expanded class hierarchy of CronInterface

All classes that implement CronInterface

See also

https://www.drupal.org/docs/administering-a-drupal-site/cron-automated-…

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

Title Sort descending Modifiers Object type Summary Overrides
CronInterface::run public function Executes a cron run. 2

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal