protected static $category = self::CATEGORY_COMPARISON;
- protected static $params = [
- [
- 'optional' => FALSE,
- ],
- ];
+ protected static $dataType = 'Boolean';
+
+ protected static function params(): array {
+ return [
+ [
+ 'optional' => FALSE,
+ ],
+ ];
+ }
/**
* @return string
}
/**
- * Reformat result as boolean
- *
- * @see \Civi\Api4\Utils\FormattingUtil::formatOutputValues
- * @param string $value
- * @param string $dataType
- * @return string|array
+ * @return string
*/
- public function formatOutputValue($value, &$dataType) {
- // Value is always TRUE or FALSE
- $dataType = 'Boolean';
- return $value;
+ public static function getDescription(): string {
+ return ts('TRUE if the value is NULL, otherwise FALSE.');
}
}