public function UserRegister::failMessages in Production check & Production monitor 8
Returns the fail messages for the check
Return value
An associative array containing the following keys
- value: the value of the check
- description: the description of the check
Overrides ProdCheckInterface::failMessages
File
- src/
Plugin/ ProdCheck/ Settings/ UserRegister.php, line 67
Class
- UserRegister
- User register settings check
Namespace
Drupal\prod_check\Plugin\ProdCheck\SettingsCode
public function failMessages() {
$link_array = $this
->generateLinkArray($this
->title(), 'entity.user.admin_form');
return [
'value' => $this->options[$this->current],
'description' => $this
->t('Your %link settings are set to "@current". Are you sure this is what you want and did not mean to use @options? With improperly setup access rights, this can be dangerous...', [
'%link' => implode($link_array),
'@current' => $this->options[$this->current],
'@options' => '"' . implode('" ' . t('or') . ' "', $this
->getSelectedOptions()) . '"',
]),
];
}