Documentation

Sluggable

Trait to add slugs based on certain fields The fields will be concatenated and then transformed into a slug

Table of Contents

$slug  : mixed
_sluggableInit()  : void
Initialize the required parameters 'fields': The fields to be concatenated 'update': If the slug should be updated once created
_sluggablePreSave()  : void
Build a slug based on the selected fields

Properties

Methods

_sluggableInit()

Initialize the required parameters 'fields': The fields to be concatenated 'update': If the slug should be updated once created

public _sluggableInit(mixed $params) : void
Parameters
$params : mixed
Return values
void

_sluggablePreSave()

Build a slug based on the selected fields

public _sluggablePreSave() : void
Return values
void

Search results