You are here

protected function EntityRow::defineOptions in Views Parity Row 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 EntityRow::defineOptions

1 call to EntityRow::defineOptions()
EntityRow::buildOptionsForm in src/Plugin/views/row/EntityRow.php
Provide a form for setting options.

File

src/Plugin/views/row/EntityRow.php, line 141

Class

EntityRow
Generic entity row plugin to provide a common base for all entity types.

Namespace

Drupal\views_parity_row\Plugin\views\row

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['views_parity_row_enable'] = [
    'default' => FALSE,
  ];
  $options['views_parity_row']['contains']['frequency'] = [
    'default' => 2,
  ];
  $options['views_parity_row']['contains']['start'] = [
    'default' => 0,
  ];
  $options['views_parity_row']['contains']['end'] = [
    'default' => 0,
  ];
  $options['views_parity_row']['contains']['view_mode'] = [
    'default' => 'default',
  ];
  $options['views_parity_row_per_row_enable'] = [
    'default' => FALSE,
  ];
  return $options;
}