CronInterface.php 356 Bytes
Newer Older
1 2 3 4 5 6
<?php

namespace Drupal\Core;

/**
 * An interface for running cron tasks.
7 8
 *
 * @see https://www.drupal.org/cron
9 10 11 12 13 14 15 16 17 18 19 20 21 22
 */
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();

}