Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IndexTidDepth.php

function IndexTidDepth::query

Overrides ArgumentPluginBase::query

File

core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php, line 92

Class

IndexTidDepth
Argument handler for taxonomy terms with depth.

Namespace

Drupal\taxonomy\Plugin\views\argument

Code

public function query($group_by = FALSE) {
    $this->ensureMyTable();
    if (!empty($this->options['break_phrase'])) {
        $break = static::breakString($this->argument);
        if ($break->value === [
            -1,
        ]) {
            return FALSE;
        }
        $tids = $break->value;
    }
    else {
        $tids = $this->argument;
    }
    $this->addSubQueryJoin($tids);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal