You are here

protected function ResponsiveViewsGrid::defineOptions in Responsive Views Grid 8

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/ResponsiveViewsGrid.php, line 32

Class

ResponsiveViewsGrid
Style plugin to render each item in a grid cell.

Namespace

Drupal\responsive_views_grid\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['columns'] = [
    'default' => '4',
  ];
  $options['automatic_width'] = [
    'default' => TRUE,
  ];
  $options['alignment'] = [
    'default' => 'horizontal',
  ];
  $options['col_class_custom'] = [
    'default' => '',
  ];
  $options['col_class_default'] = [
    'default' => TRUE,
  ];
  $options['row_class_custom'] = [
    'default' => '',
  ];
  $options['row_class_default'] = [
    'default' => TRUE,
  ];
  return $options;
}