You are here

protected function Selective::baseFieldCompatible in Views Selective Filters 8

Checks if two base fields are compatible.

1 call to Selective::baseFieldCompatible()
Selective::buildOptionsForm in src/Plugin/views/filter/Selective.php
Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

File

src/Plugin/views/filter/Selective.php, line 124

Class

Selective
Views filter handler for selective values.

Namespace

Drupal\views_selective_filters\Plugin\views\filter

Code

protected function baseFieldCompatible($base_field1, $base_field2) {
  return strpos($base_field2, $base_field1) === 0;
}