MultiRangesTrait.php in Views Contextual Range Filter 8
File
src/Plugin/views/argument/MultiRangesTrait.php
View source
<?php
namespace Drupal\contextual_range_filter\Plugin\views\argument;
trait MultiRangesTrait {
protected function breakPhraseRange($str) {
if (empty($str)) {
return;
}
$this->value = preg_split('/[+ ]/', $str);
$this->operator = 'or';
if (count($this->value) > 1 && (empty($this->value[0]) || empty($this->value[1]))) {
$this->value = FALSE;
}
}
}
Traits
Name |
Description |
MultiRangesTrait |
Common member functions for Views contextual range argument plugins. |