/** * {@inheritdoc} */ protected function populateValue($element) : bool { $return = parent::populateValue($element); if (!$return && $this->isSubmit()) { $this->addErrorClass($element); } return $return; }