if (empty($this->valueOptions
)) { $this->
getValueOptions();
} // Now that we have the valid options for this filter, just return the
// human-readable label based on the current value. The valueOptions
// array is keyed with either 0 or 1, so if the current value is not
// empty, use the label for 1, and if it's empty, use the label for 0.
return $this->operator . ' ' .
$this->valueOptions
[!
empty($this->value
)];
} public function defaultExposeOptions() { parent::
defaultExposeOptions();
$this->options
['expose'
]['operator_id'
] = '';
$this->options
['expose'
]['label'
] =
$this->value_value;
$this->options
['expose'
]['required'
] = TRUE;
} /**
* {@inheritdoc}
*/
public function query() { $this->
ensureMyTable();
$field = "
$this->tableAlias.
$this->realField";