Classes
Members
api/slug.SlugCollection
# static constant exports.Slugs
Provides the singleton instance of a SlugCollection to all other entities.
Methods
# static exports.newSlugValidator()
Custom validator for fields that must contain a previously undefined slug name.
Error if there are no Slugs in the SlugCollection.
Undefined if the slug value is not previously defined, otherwise errorType 'duplicateSlug'.
# static slugify(text) → {string}
Slugifies the give text.
Parameters:
Name | Type | Description |
---|---|---|
text |
string