function GridResponsive::defineOptions

Same name in other branches
  1. 10 core/modules/views/src/Plugin/views/style/GridResponsive.php \Drupal\views\Plugin\views\style\GridResponsive::defineOptions()

Overrides StylePluginBase::defineOptions

File

core/modules/views/src/Plugin/views/style/GridResponsive.php, line 31

Class

GridResponsive
Style plugin to render each item in a responsive grid cell.

Namespace

Drupal\views\Plugin\views\style

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['columns'] = [
        'default' => '4',
    ];
    $options['cell_min_width'] = [
        'default' => '100',
    ];
    $options['grid_gutter'] = [
        'default' => '10',
    ];
    $options['alignment'] = [
        'default' => 'horizontal',
    ];
    return $options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.