Automattic\WooCommerce\Vendor\GraphQL\Utils
Utils::quotedOrList
Method of the class: Utils{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Utils::quotedOrList( $items ): string;
- $items(array
) (required) - .
Utils::quotedOrList() Utils::quotedOrList code WC 11.1.2
public static function quotedOrList(array $items): string
{
$quoted = array_map(
static fn (string $item): string => "\"{$item}\"",
$items
);
return self::orList($quoted);
}