Example #1
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['operator']['default'] = 'or';
     $options['value']['default'] = array();
     if (isset($this->helper)) {
         $this->helper->defineOptions($options);
     } else {
         $helper = new ManyToOneHelper($this);
         $helper->defineOptions($options);
     }
     return $options;
 }
Example #2
0
  /**
   * {@inheritdoc}
   */
  protected function defineOptions() {
    $options = parent::defineOptions();
    $options['verf_target_bundles'] = [
      'default' => [],
    ];

    return $options;
  }
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     // We use the "default" selection by default. Its derivative IDs are entity
     // type IDs.
     $options['entity_reference_selection_id'] = ['default' => 'default:' . $this->targetEntityTypeId];
     $options['entity_reference_selection_handler_settings'] = ['default' => []];
     return $options;
 }