function ultimate_cron_plugin_load in Ultimate Cron 8.2
Load callback for plugins.
Parameters
string $type: Type of the plugin (settings, scheduler, launcher, logger).
string $name: Name of the plugin (general, queue, serial, database, etc.).
Return value
object The instance of the plugin (singleton).
2 calls to ultimate_cron_plugin_load()
- CronJob::getPlugin in src/
Entity/ CronJob.php - Get job plugin.
- CronJob::signal in src/
Entity/ CronJob.php - Signal page for plugins.
File
- ./
ultimate_cron.module, line 103 - Ultimate Cron. Extend cron functionality in Drupal.
Code
function ultimate_cron_plugin_load($type, $name) {
$cache =& drupal_static('ultimate_cron_plugin_load_all', array());
if (!isset($cache[$type][$name])) {
ultimate_cron_plugin_load_all($type);
$cache[$type][$name] = isset($cache[$type][$name]) ? $cache[$type][$name] : FALSE;
}
return $cache[$type][$name];
}