namespace Drupal\taxonomy\Plugin\views\argument;
+use Drupal\Core\Database\Query\Condition;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
class IndexTidDepth extends ArgumentPluginBase implements ContainerFactoryPluginInterface {
/**
- * @var EntityStorageInterface
+ * @var \Drupal\Core\Entity\EntityStorageInterface
*/
protected $termStorage;
// Now build the subqueries.
$subquery = db_select('taxonomy_index', 'tn');
$subquery->addField('tn', 'nid');
- $where = db_or()->condition('tn.tid', $tids, $operator);
+ $where = (new Condition('OR'))->condition('tn.tid', $tids, $operator);
$last = "tn";
if ($this->options['depth'] > 0) {