public function CronOverride::loadOverrides in Automatic Updates 8
Returns config overrides.
Parameters
array $names: A list of configuration names that are being loaded.
Return value
array An array keyed by configuration name of override data. Override data contains a nested array structure of overrides.
Overrides ConfigFactoryOverrideInterface::loadOverrides
File
- src/
EventSubscriber/ CronOverride.php, line 30
Class
- CronOverride
- This class overrides the default system warning and error limits for cron.
Namespace
Drupal\automatic_updates\EventSubscriberCode
public function loadOverrides($names) {
$overrides = [];
if (in_array('system.cron', $names, TRUE)) {
$overrides['system.cron']['threshold'] = [
'requirements_warning' => $this::WARNING_THRESHOLD,
'requirements_error' => $this::ERROR_THRESHOLD,
];
}
return $overrides;
}