protected function Fields::defineOptions in Layout Plugin Views 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/row/Fields.php \Drupal\layout_plugin_views\Plugin\views\row\Fields::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 Fields::defineOptions
File
- src/
Plugin/ views/ row/ Fields.php, line 66
Class
- Fields
- The layout_plugin_views 'fields' row plugin
Namespace
Drupal\layout_plugin_views\Plugin\views\rowCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['layout']['default'] = '';
$options['default_region']['default'] = '';
$options['assigned_regions']['default'] = [];
return $options;
}