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; }
/** * {@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; }