public function ValidJSONConstraintValidator::__construct in JSON Field 8
Constructs a ValidJSONConstraintValidator object.
Parameters
\Symfony\Component\Serializer\Encoder\DecoderInterface $serializer:
File
- src/
Plugin/ Validation/ Constraint/ ValidJSONConstraintValidator.php, line 28
Class
- ValidJSONConstraintValidator
- Checks if JSON values are valid.
Namespace
Drupal\json_field\Plugin\Validation\ConstraintCode
public function __construct(DecoderInterface $serializer) {
$this->serializer = $serializer;
}