return new GroupBy($formType,
$groupBy,
$vary);
} /**
* Decorates a "preferred_choices" option to make it cacheable.
*
* @param callable|array $preferred Any pseudo callable or array to return a group name from a choice
* @param mixed $vary Dynamic data used to compute a unique hash when caching the option
*/
public static function preferred(FormTypeInterface|FormTypeExtensionInterface
$formType, callable|array
$preferred, mixed
$vary = null
): PreferredChoice
{ return new PreferredChoice($formType,
$preferred,
$vary);
} /**
* Should not be instantiated.
*/
private function __construct() { }}