Merge pull request #19030 from civicrm/5.32
[civicrm-core.git] / Civi / Api4 / Query / SqlFunctionMAX.php
index f80ebeea15abfb7fb804642d675ea920f6950400..c783d2cab712332f205ef60704364a691c135678 100644 (file)
@@ -16,6 +16,10 @@ namespace Civi\Api4\Query;
  */
 class SqlFunctionMAX extends SqlFunction {
 
+  public $supportsExpansion = TRUE;
+
+  protected static $category = self::CATEGORY_AGGREGATE;
+
   protected static $params = [
     [
       'prefix' => ['', 'DISTINCT', 'ALL'],
@@ -24,4 +28,11 @@ class SqlFunctionMAX extends SqlFunction {
     ],
   ];
 
+  /**
+   * @return string
+   */
+  public static function getTitle(): string {
+    return ts('Max');
+  }
+
 }