You are here

protected function NodeTermData::defineOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php \Drupal\taxonomy\Plugin\views\relationship\NodeTermData::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 RelationshipPluginBase::defineOptions

File

core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php, line 80
Contains \Drupal\taxonomy\Plugin\views\relationship\NodeTermData.

Class

NodeTermData
Relationship handler to return the taxonomy terms of nodes.

Namespace

Drupal\taxonomy\Plugin\views\relationship

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['vids'] = array(
    'default' => array(),
  );
  return $options;
}