3, 'max_expr' => 3, 'optional' => FALSE, 'ui_defaults' => [ ['type' => 'SqlField', 'placeholder' => ts('If')], ['type' => 'SqlField', 'placeholder' => ts('Then')], ['type' => 'SqlField', 'placeholder' => ts('Else')], ], ], ]; } /** * @return string */ public static function getTitle(): string { return ts('If/Else'); } /** * @return string */ public static function getDescription(): string { return ts('If the field is empty, the first value, otherwise the second.'); } }