You are here

public function ProfileViewsRelationship::query in Profile 8

Add anything to the query that we might need to.

Overrides RelationshipPluginBase::query

File

src/Plugin/views/relationship/ProfileViewsRelationship.php, line 73

Class

ProfileViewsRelationship
Provides a views relationship to select profile content by a profile_type.

Namespace

Drupal\profile\Plugin\views\relationship

Code

public function query() {
  $this->definition['extra'][] = [
    'field' => 'type',
    'value' => $this->options['profile_type'],
  ];
  parent::query();
}