Exemple #1
0
 public function setFieldOptions(array $options)
 {
     if (array_key_exists('multiple', $options) && $options['multiple'] === false) {
         throw new \LogicException('For single choice fields, use the `choice` field type');
     }
     return parent::setFieldOptions($options);
 }
 /**
  * Merge field options with existing options
  *
  * @param array $options
  *
  * @return Link
  */
 public function setFieldOptions(array $options)
 {
     $base = $this->getFieldOptions();
     $options = array_merge($base, $options);
     parent::setFieldOptions($options);
     return $this;
 }