protected function BlazyViews::defineOptions in Blazy 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/style/BlazyViews.php \Drupal\blazy\Plugin\views\style\BlazyViews::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/ BlazyViews.php, line 66
Class
- BlazyViews
- Blazy style plugin.
Namespace
Drupal\blazy\Plugin\views\styleCode
protected function defineOptions() {
$options = [];
foreach (BlazyDefault::gridSettings() as $key => $value) {
$options[$key] = [
'default' => $value,
];
}
return $options + parent::defineOptions();
}