$slug
$slug : \Charcoal\Translation\TranslationString|string|null
The object's route.
Full implementation, as Trait, of the {@see \Charcoal\Object\RoutableInterface}.
This implementation uses a secondary model, \Charcoal\Object\ObjectRoute, to collect all routes of routable models under a single source.
$latestObjectRoute : \Charcoal\Object\ObjectRouteInterface
Latest ObjectRoute object concerning the current object.
$objectRouteClass : string
The class name of the object route model.
Must be a fully-qualified PHP namespace and an implementation of \Charcoal\Object\ObjectRouteInterface. Used by the model factory.
setSlugPattern(mixed $pattern) : \Charcoal\Object\RoutableInterface
Set the object's URL slug pattern.
mixed | $pattern | The slug pattern. |
Chainable
setSlug(mixed $slug) : \Charcoal\Object\RoutableInterface
Set the object's URL slug.
mixed | $slug | The slug. |
Chainable
createRouteObject() : \Charcoal\Object\ObjectRouteInterface
Create a route object.
generateObjectRoute(mixed $slug = null) : void
Route generation.
Saves all routes to \Charcoal\Object\ObjectRoute.
mixed | $slug | Slug by langs. |
getLatestObjectRoute(string|null $lang = null) : \Charcoal\Object\ObjectRouteInterface
Retrieve the latest object route.
string|null | $lang | If object is multilingual, return the object route for the specified locale. |
If the given language is invalid.
Latest object route.
setObjectRouteClass(string $className) : \Charcoal\Object\AbstractPropertyDisplay
Set the class name of the object route model.
string | $className | The class name of the object route model. |
If the class name is not a string.
Chainable