You are here

protected function BlazyViewsTest::defineOptions in Blazy 8

Same name and namespace in other branches
  1. 8.2 tests/modules/blazy_test/src/Plugin/views/style/BlazyViewsTest.php \Drupal\blazy_test\Plugin\views\style\BlazyViewsTest::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

tests/modules/blazy_test/src/Plugin/views/style/BlazyViewsTest.php, line 36

Class

BlazyViewsTest
Blazy Views Test style plugin.

Namespace

Drupal\blazy_test\Plugin\views\style

Code

protected function defineOptions() {
  $options = [];
  $defaults = BlazyDefault::extendedSettings() + BlazyDefault::gridSettings();
  foreach ($defaults as $key => $value) {
    $options[$key] = [
      'default' => $value,
    ];
  }
  return $options + parent::defineOptions();
}