suggestSlug method

  1. @override
Future<String> suggestSlug(
  1. String title,
  2. String documentType
)
override

Suggests a unique slug for a document based on its title.

title - The document title to generate a slug from documentType - The document type to check uniqueness within

Returns a unique slug string. If a duplicate exists, appends a suffix.

Throws DeskDataSourceException if the operation fails.

Implementation

@override
Future<String> suggestSlug(String title, String documentType) async {
  return _generateSlug(title);
}