interface CronInterface in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/CronInterface.php \Drupal\Core\CronInterface
- 9 core/lib/Drupal/Core/CronInterface.php \Drupal\Core\CronInterface
An interface for running cron tasks.
Hierarchy
- interface \Drupal\Core\CronInterface
Expanded class hierarchy of CronInterface
All classes that implement CronInterface
See also
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\CoreView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CronInterface:: |
public | function | Executes a cron run. | 1 |