public function setFieldOptions(array $options) { if (array_key_exists('multiple', $options) && $options['multiple'] === true) { throw new \LogicException('For multiple choice fields, use the `multichoice` field type'); } return parent::setFieldOptions($options); }