protected function ErrorReporting::getSelectedOptions in Production check & Production monitor 8
Fetches all the selected options.
1 call to ErrorReporting::getSelectedOptions()
- ErrorReporting::failMessages in src/
Plugin/ ProdCheck/ Settings/ ErrorReporting.php - Returns the fail messages for the check
File
- src/
Plugin/ ProdCheck/ Settings/ ErrorReporting.php, line 125
Class
- ErrorReporting
- User register settings check
Namespace
Drupal\prod_check\Plugin\ProdCheck\SettingsCode
protected function getSelectedOptions() {
$selected_options = [];
foreach ($this->configuration['options'] as $option) {
if (!empty($option)) {
$selected_options[] = $this->options[$option];
}
}
return $selected_options;
}