protected function UIkitViewTable::defineOptions in UIkit Components 8
Same name and namespace in other branches
- 8.3 uikit_views/src/Plugin/views/style/UIkitViewTable.php \Drupal\uikit_views\Plugin\views\style\UIkitViewTable::defineOptions()
- 8.2 uikit_views/src/Plugin/views/style/UIkitViewTable.php \Drupal\uikit_views\Plugin\views\style\UIkitViewTable::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 StylePluginBase::defineOptions
File
- uikit_views/
src/ Plugin/ views/ style/ UIkitViewTable.php, line 66
Class
- UIkitViewTable
- Style plugin to render each item in a UIkit Table component.
Namespace
Drupal\uikit_views\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
// Default table view options.
$options['columns'] = [
'default' => [],
];
$options['default'] = [
'default' => '',
];
$options['info'] = [
'default' => [],
];
$options['override'] = [
'default' => TRUE,
];
$options['sticky'] = [
'default' => FALSE,
];
$options['order'] = [
'default' => 'asc',
];
$options['caption'] = [
'default' => '',
];
$options['summary'] = [
'default' => '',
];
$options['description'] = [
'default' => '',
];
$options['empty_table'] = [
'default' => FALSE,
];
// UIkit table view options.
$options['responsive_table'] = [
'default' => FALSE,
];
$options['vertical_modifier'] = [
'default' => FALSE,
];
$options['table_modifiers'] = [
'default' => [
'hover' => FALSE,
'striped' => FALSE,
'condensed' => FALSE,
],
];
return $options;
}