33 ValidationFactory $validation_factory,
34 TransformationFactory $transformation_factory,
39 parent::__construct($data_factory, $validation_factory, $transformation_factory, $label, $byline);
56 if (is_null($value)) {
59 if (is_array($value)) {
60 foreach ($value as $v) {
61 if (!array_key_exists($v, $this->options)) {
75 $constraint = $this->validation_factory->custom(
77 return (is_array($value) && count($value) > 0);