You are here

public function ActivityPlugin::addWhere in Activity 8

File

src/Plugin/views/query/ActivityPlugin.php, line 117

Class

ActivityPlugin
Activity views query plugin which display all activities.

Namespace

Drupal\activity\Plugin\views\query

Code

public function addWhere($group, $field, $value = NULL, $operator = NULL) {
  if (empty($group)) {
    $group = 0;
  }

  // Check for a group.
  if (!isset($this->where[$group])) {
    $this
      ->setWhereGroup('AND', $group);
  }
  if ($this->activities instanceof Select) {
    $this->activities
      ->condition($field, $value, $operator);
  }
}