You are here

function Ip2LongArgument::query in IP address manager 8.2

Set up the query for this argument.

The argument sent may be found at $this->argument.

Overrides ArgumentPluginBase::query

File

src/Plugin/views/argument/Ip2LongArgument.php, line 21
Contains \Drupal\ip\Plugin\views\argument\Ip2LongArgument.

Class

Ip2LongArgument
Ip2long implementation of the base argument plugin.

Namespace

Drupal\ip\Plugin\views\argument

Code

function query($group_by = FALSE) {
  $this
    ->ensureMyTable();
  $this->query
    ->addWhere(0, "{$this->tableAlias}.{$this->realField}", ip2long($this->argument));
}