/** * {@inheritdoc} */ protected function defineOptions() { $options = parent::defineOptions(); $options['block_description'] = array('default' => ''); $options['block_category'] = array('default' => $this->t('Lists (Views)')); $options['block_hide_empty'] = array('default' => FALSE); $options['allow'] = array('contains' => array('items_per_page' => array('default' => 'items_per_page'))); return $options; }
protected function defineOptions() { $options = parent::defineOptions(); $options['displays'] = array('default' => array()); $options['attachment_position'] = array('default' => 'before'); $options['inherit_arguments'] = array('default' => TRUE, 'bool' => TRUE); $options['inherit_exposed_filters'] = array('default' => FALSE, 'bool' => TRUE); $options['inherit_pager'] = array('default' => FALSE, 'bool' => TRUE); $options['render_pager'] = array('default' => FALSE, 'bool' => TRUE); return $options; }
/** * Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::defineOptions(). */ protected function defineOptions() { $options = parent::defineOptions(); // Force the style plugin to 'entity_reference_style' and the row plugin to // 'fields'. $options['style']['contains']['type'] = array('default' => 'entity_reference'); $options['defaults']['default']['style'] = FALSE; $options['row']['contains']['type'] = array('default' => 'entity_reference'); $options['defaults']['default']['row'] = FALSE; // Make sure the query is not cached. $options['defaults']['default']['cache'] = FALSE; // Set the display title to an empty string (not used in this display type). $options['title']['default'] = ''; $options['defaults']['default']['title'] = FALSE; return $options; }
/** * {@inheritdoc} */ protected function defineOptions() { $options = parent::defineOptions(); $options['test_option'] = array('default' => ''); return $options; }
/** * Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase:defineOptions(). */ protected function defineOptions() { $options = parent::defineOptions(); $options['path'] = array('default' => ''); $options['route_name'] = array('default' => ''); return $options; }