You are here

function Ip2LongFilter::op_regex in IP address manager 8.2

File

src/Plugin/views/filter/Ip2LongFilter.php, line 47
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 op_regex($field) {
  $this->query
    ->addWhere($this->options['group'], $field, ip2long($this->value['value']), 'RLIKE');
}