function NodeTermData::defineOptions

Same name in other branches
  1. 8.9.x core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php \Drupal\taxonomy\Plugin\views\relationship\NodeTermData::defineOptions()
  2. 10 core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php \Drupal\taxonomy\Plugin\views\relationship\NodeTermData::defineOptions()
  3. 11.x core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php \Drupal\taxonomy\Plugin\views\relationship\NodeTermData::defineOptions()

Overrides RelationshipPluginBase::defineOptions

File

core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php, line 56

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'] = [
        'default' => [],
    ];
    return $options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.