protected function GridStackViews::buildSettings in GridStack 8.2
1 call to GridStackViews::buildSettings()
- GridStackViews::render in src/
Plugin/ views/ style/ GridStackViews.php - Overrides StylePluginBase::render().
File
- src/
Plugin/ views/ style/ GridStackViews.php, line 104
Class
- GridStackViews
- GridStack style plugin.
Namespace
Drupal\gridstack\Plugin\views\styleCode
protected function buildSettings() {
// @todo move it into self::prepareSettings() post blazy:2.x.
$this->options['item_id'] = 'box';
$this->options['namespace'] = 'gridstack';
$settings = parent::buildSettings();
// Prepare needed settings to work with.
$settings['caption'] = array_filter($settings['caption']);
$settings['ratio'] = '';
$settings['_noratio'] = TRUE;
return $settings;
}