protected function MixItUp::defineOptions in MixItUp Views 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/style/MixItUp.php \Drupal\mixitup_views\Plugin\views\style\MixItUp::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
- src/
Plugin/ views/ style/ MixItUp.php, line 88
Class
- MixItUp
- Style plugin for MixItUp.
Namespace
Drupal\mixitup_views\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
// Get the default options.
$default_options = $this->defaultOptions;
foreach ($default_options as $option => $default_value) {
$options[$option] = [
'default' => $default_value,
];
if (\is_int($default_value)) {
$options[$option]['bool'] = TRUE;
}
}
return $options;
}