You are here

protected function PlainText::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/PlainText.php, line 62

Class

PlainText
Default style plugin to render recipes in plain text.

Namespace

Drupal\recipe\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['wordwrap_width'] = [
    'default' => 75,
  ];
  $options['hide_empty'] = [
    'default' => FALSE,
  ];
  $options['row_separator'] = [
    'default' => "====\n\n",
  ];
  return $options;
}