Slug
- Full name: \Zemit\Mvc\Model\Traits\Slug
Methods
initializeSlug
Initializes the slug behavior for the model.
public initializeSlug(array|null $options = null): void
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $options | **array | null** | 
setSlugBehavior
Sets the slug behavior for the model.
public setSlugBehavior(\Zemit\Mvc\Model\Behavior\Transformable $slugBehavior): void
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $slugBehavior | \Zemit\Mvc\Model\Behavior\Transformable | A Transformable object representing the slug behavior. | 
getSlugBehavior
Returns the slug behavior associated with the model.
public getSlugBehavior(): \Zemit\Mvc\Model\Behavior\Transformable
Return Value:
The slug behavior associated with the model.