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

8.1.x
Alex Pott 2015-12-18 09:31:47 +00:00
parent dffb305079
commit d04a6a84c1
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ class FormValidator implements FormValidatorInterface {
foreach ($value as $v) {
if (!isset($options[$v])) {
$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']));
}
}
}