protected static function FilterPluginBase::arrayFilterZero

Filter by no empty values, though allow to use "0".

Parameters

string $var: The variable to evaluate.

Return value

bool TRUE if the value is equal to an empty string, FALSE otherwise.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php, line 1445
Definition of Drupal\views\Plugin\views\filter\FilterPluginBase.

Class

FilterPluginBase
Base class for filters.

Namespace

Drupal\views\Plugin\views\filter

Code

protected static function arrayFilterZero($var) {
  return trim($var) != '';
}