/** * Checks if the given field accepts the given value-type. * * @param FieldConfigInterface $fieldConfig * @param string $type * * @throws UnsupportedValueTypeException * * @deprecated */ protected function assertAcceptsType(FieldConfigInterface $fieldConfig, $type) { if (!$fieldConfig->supportValueType($type)) { throw new UnsupportedValueTypeException($fieldConfig->getName(), $type); } }