You are here

function Ip2LongFilter::opSimple in IP address manager 8.2

Overrides NumericFilter::opSimple

File

src/Plugin/views/filter/Ip2LongFilter.php, line 32
Contains \Drupal\ip\Plugin\views\filter\Ip2LongFilter.

Class

Ip2LongFilter
Filter to handle greater than/less than ip2long filters

Namespace

Drupal\ip\Plugin\views\filter

Code

function opSimple($field) {
  $this->query
    ->addWhere($this->options['group'], $field, ip2long($this->value['value']), $this->operator);
}