/**
  * @param ConfigValue $constraint
  * @param string      $name
  * @param integer     $value
  */
 protected function validateFieldConfig(ConfigValue $constraint, $name, $value)
 {
     // if it's single valued, value must be numeric
     if (!is_numeric($value)) {
         $this->context->addViolation($constraint->numericMessage, ['{{ value }}' => var_export($value, true)]);
         return;
     }
     // enforce array
     if (!$this->config->hasFieldConfigKey($name, intval($value))) {
         $this->context->addViolation($constraint->message, ['{{ value }}' => $value]);
     }
 }
 /**
  * @param string $type
  *
  * @return array|null
  */
 protected function getConfigValues($type)
 {
     return $this->config->getFieldConfig($type);
 }