Crypt::hmacBase64

public static Crypt::hmacBase64($data, $key) Calculates a base-64 encoded, URL-safe sha-256 hmac. Parameters mixed $data: Scalar value to be validated with the hmac. mixed $key: A secret key, this can be any scalar value. Return value string A base-64 encoded sha-256 hmac, with + replaced with -, / with _ and any = padding characters removed. File core/lib/Drupal/Component/Utility/Crypt.php, line 46 Class Crypt Utility class for cryptographically-secure string handling routines. Namesp

Crypt::hashEquals

public static Crypt::hashEquals($known_string, $user_string) Compares strings in constant time. Parameters string $known_string: The expected string. string $user_string: The user supplied string to check. Return value bool Returns TRUE when the two strings are equal, FALSE otherwise. File core/lib/Drupal/Component/Utility/Crypt.php, line 87 Class Crypt Utility class for cryptographically-secure string handling routines. Namespace Drupal\Component\Utility Code public static function

Crypt::hashBase64

public static Crypt::hashBase64($data) Calculates a base-64 encoded, URL-safe sha-256 hash. Parameters string $data: String to be hashed. Return value string A base-64 encoded sha-256 hash, with + replaced with -, / with _ and any = padding characters removed. File core/lib/Drupal/Component/Utility/Crypt.php, line 70 Class Crypt Utility class for cryptographically-secure string handling routines. Namespace Drupal\Component\Utility Code public static function hashBase64($data) { $ha

Crypt

Utility class for cryptographically-secure string handling routines. Hierarchy class \Drupal\Component\Utility\Crypt Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Component/Utility/Crypt.php, line 10 Namespace Drupal\Component\Utility Members Name Modifiers Type Description Crypt::hashBase64 public static function Calculates a base-64 encoded, URL-safe sha-256 hash. Crypt::hashEquals publ

CronInterface::run

public CronInterface::run() Executes a cron run. Do not call this function from a test. Use $this->cronRun() instead. Return value bool TRUE upon success, FALSE otherwise. File core/lib/Drupal/Core/CronInterface.php, line 20 Class CronInterface An interface for running cron tasks. Namespace Drupal\Core Code public function run();

CronInterface

An interface for running cron tasks. Hierarchy interface \Drupal\Core\CronInterface See also https://www.drupal.org/cron File core/lib/Drupal/Core/CronInterface.php, line 10 Namespace Drupal\Core Members Name Modifiers Type Description CronInterface::run public function Executes a cron run.

CronController::__construct

public CronController::__construct(CronInterface $cron) Constructs a CronController object. Parameters \Drupal\Core\CronInterface $cron: The cron service. File core/modules/system/src/CronController.php, line 28 Class CronController Controller for Cron handling. Namespace Drupal\system Code public function __construct(CronInterface $cron) { $this->cron = $cron; }

CronController::runManually

public CronController::runManually() Run cron manually. Return value \Symfony\Component\HttpFoundation\RedirectResponse A Symfony direct response object. File core/modules/system/src/CronController.php, line 59 Class CronController Controller for Cron handling. Namespace Drupal\system Code public function runManually() { if ($this->cron->run()) { drupal_set_message($this->t('Cron ran successfully.')); } else { drupal_set_message($this->t('Cron run failed.'),

CronController::run

public CronController::run() Run Cron once. Return value \Symfony\Component\HttpFoundation\Response A Symfony response object. File core/modules/system/src/CronController.php, line 46 Class CronController Controller for Cron handling. Namespace Drupal\system Code public function run() { $this->cron->run(); // HTTP 204 is "No content", meaning "I did what you asked and we're done." return new Response('', 204); }

CronController::create

public static CronController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service c