You are here

protected function RecipeML::defineOptions in Recipe 8.2

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/RecipeML.php, line 81
Copyright (c) FormatData. All rights reserved.

Class

RecipeML
Default style plugin to render RecipeML.

Namespace

Drupal\recipe\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['title_field'] = [
    'default' => '',
  ];
  $options['version_field'] = [
    'default' => '',
  ];
  $options['source_field'] = [
    'default' => '',
  ];
  $options['time_fields'] = [
    'default' => [],
  ];
  $options['yield_qty_field'] = [
    'default' => '',
  ];
  $options['yield_unit_field'] = [
    'default' => '',
  ];
  $options['description_field'] = [
    'default' => '',
  ];
  $options['ingredients_field'] = [
    'default' => '',
  ];
  $options['directions_field'] = [
    'default' => '',
  ];
  return $options;
}