You are here

public function Citation::defineOptions in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Plugin/views/field/Citation.php \Drupal\bibcite_entity\Plugin\views\field\Citation::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 FieldPluginBase::defineOptions

File

modules/bibcite_entity/src/Plugin/views/field/Citation.php, line 61

Class

Citation
Field handler to render bibcite reference as citation.

Namespace

Drupal\bibcite_entity\Plugin\views\field

Code

public function defineOptions() {
  $options = parent::defineOptions();
  $options['csl_style'] = [
    'default' => '',
  ];
  return $options;
}