/** * @inheritdoc */ protected function validateValue($value) { if ($res = parent::validateValue($value)) { return $res; } if ($res = $this->validateValueByPattern($value)) { return $res; } return null; }