You are here

protected function ViewsRowInsert::defineOptions in Views Row Insert 8

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides StylePluginBase::defineOptions

File

src/Plugin/views/style/ViewsRowInsert.php, line 40

Class

ViewsRowInsert
A Views style that renders markup for Bootstrap tabs.

Namespace

Drupal\views_row_insert\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['use_plugin'] = [
    'default' => TRUE,
  ];
  $options['data_mode'] = [
    'default' => 'vri_text',
  ];
  $options['block_name'] = [
    'default' => FALSE,
  ];
  $options['custom_row_data'] = [
    'default' => '<strong>Your HTML is here</strong>',
  ];
  $options['rows_number'] = [
    'default' => 2,
  ];
  $options['show_once'] = [
    'default' => FALSE,
  ];
  $options['row_class'] = [
    'default' => FALSE,
  ];
  $options['class_name'] = [
    'default' => FALSE,
  ];
  $options['default_rows'] = [
    'default' => FALSE,
  ];
  $options['strip_rows'] = [
    'default' => FALSE,
  ];
  $options['row_header'] = [
    'default' => FALSE,
  ];
  $options['row_footer'] = [
    'default' => FALSE,
  ];
  $options['row_limit_flag'] = [
    'default' => FALSE,
  ];
  $options['row_limit'] = [
    'default' => '0',
  ];
  return $options;
}