You are here

protected function UIkitViewList::defineOptions in UIkit Components 8.3

Same name and namespace in other branches
  1. 8 uikit_views/src/Plugin/views/style/UIkitViewList.php \Drupal\uikit_views\Plugin\views\style\UIkitViewList::defineOptions()
  2. 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 33

Class

UIkitViewList
Style plugin to render each item in a UIkit List component.

Namespace

Drupal\uikit_views\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['class'] = [
    'default' => 'uk-list',
  ];
  $options['wrapper_class'] = [
    'default' => 'uikit-view-list',
  ];
  return $options;
}