Interface ISlugProvider
-
- All Implemented Interfaces:
public interface ISlugProviderInterface to be implemented by custom slug generators.
Provides logic for generating unique slugs based on an entity and a base slug string.
-
-
Method Summary
Modifier and Type Method Description abstract StringgenerateSlug(ISlugSupport<?> entity, String slug)Generates a slug for the given entity using the provided base slug. -
-
Method Detail
-
generateSlug
abstract String generateSlug(ISlugSupport<?> entity, String slug)
Generates a slug for the given entity using the provided base slug.
Implementations may apply additional rules such as uniqueness checks, suffixes, or normalization.
- Parameters:
entity- The entity for which the slug is being generated.slug- The base slug string derived from the entity's annotated SlugField.- Returns:
A valid and unique slug string to be assigned to the entity.
-
-
-
-