protected function UIkitViewList::defineOptions in UIkit Components 8
Same name and namespace in other branches
- 8.3 uikit_views/src/Plugin/views/style/UIkitViewList.php \Drupal\uikit_views\Plugin\views\style\UIkitViewList::defineOptions()
- 8.2 uikit_views/src/Plugin/views/style/UIkitViewList.php \Drupal\uikit_views\Plugin\views\style\UIkitViewList::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/ UIkitViewList.php, line 40
Class
- UIkitViewList
- Style plugin to render each item in a UIkit List component.
Namespace
Drupal\uikit_views\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['type'] = [
'default' => 'ul',
];
$options['class'] = [
'default' => 'uk-list',
];
$options['wrapper_class'] = [
'default' => 'uikit-view-list',
];
return $options;
}