Commit d04a6a84 authored by alexpott's avatar alexpott

Issue #2637458 by legolasbo: Remove !placeholder in FormValidator::performRequiredValidation()

parent dffb3050
...@@ -346,7 +346,7 @@ protected function performRequiredValidation(&$elements, FormStateInterface &$fo ...@@ -346,7 +346,7 @@ protected function performRequiredValidation(&$elements, FormStateInterface &$fo
foreach ($value as $v) { foreach ($value as $v) {
if (!isset($options[$v])) { if (!isset($options[$v])) {
$form_state->setError($elements, $this->t('An illegal choice has been detected. Please contact the site administrator.')); $form_state->setError($elements, $this->t('An illegal choice has been detected. Please contact the site administrator.'));
$this->logger->error('Illegal choice %choice in !name element.', array('%choice' => $v, '!name' => empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title'])); $this->logger->error('Illegal choice %choice in %name element.', array('%choice' => $v, '%name' => empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title']));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment