public function SerialLauncher::settingsFormValidate in Ultimate Cron 8.2
File
- src/
Plugin/ ultimate_cron/ Launcher/ SerialLauncher.php, line 124
Class
- SerialLauncher
- Ultimate Cron launcher plugin class.
Namespace
Drupal\ultimate_cron\Plugin\ultimate_cron\LauncherCode
public function settingsFormValidate(&$form, &$form_state, $job = NULL) {
$elements =& $form['configuration'][$this->type][$this->name];
$values =& $form_state['values']['configuration'][$this->type][$this->name];
if (!$job) {
if (intval($values['max_threads']) <= 0) {
form_set_error("settings[{$this->type}][{$this->name}", t('%title must be greater than 0', array(
'%title' => $elements['launcher']['max_threads']['#title'],
)));
}
}
}