You are here

protected function Gridstack::defineOptions in DXPR GridStack 8

Same name in this branch
  1. 8 src/Plugin/views/style/Gridstack.php \Drupal\dxpr_gridstack\Plugin\views\style\Gridstack::defineOptions()
  2. 8 src/Plugin/views/row/Gridstack.php \Drupal\dxpr_gridstack\Plugin\views\row\Gridstack::defineOptions()
Same name and namespace in other branches
  1. 1.0.x src/Plugin/views/row/Gridstack.php \Drupal\dxpr_gridstack\Plugin\views\row\Gridstack::defineOptions()

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 RowPluginBase::defineOptions

File

src/Plugin/views/row/Gridstack.php, line 29

Class

Gridstack
The basic 'Gridstack' row plugin.

Namespace

Drupal\dxpr_gridstack\Plugin\views\row

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['image'] = [
    'default' => '',
  ];
  $options['title'] = [
    'default' => '',
  ];
  $options['category'] = [
    'default' => '',
  ];
  return $options;
}