You are here

public function RelationRelationship::defineOptions in Relation 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/relationship/RelationRelationship.php \Drupal\relation\Plugin\views\relationship\RelationRelationship::defineOptions()

Define r_index option.

Overrides RelationshipPluginBase::defineOptions

File

src/Plugin/views/relationship/RelationRelationship.php, line 25
Views relationship support.

Class

RelationRelationship
Relate entities using a Relation endpoint.

Namespace

Drupal\relation\Plugin\views\relationship

Code

public function defineOptions() {
  $options = parent::defineOptions();
  $options['r_index'] = array(
    'default' => -1,
  );
  $options['entity_deduplication_left'] = array(
    'default' => FALSE,
  );
  $options['entity_deduplication_right'] = array(
    'default' => FALSE,
  );
  return $options;
}