behaviors\SluggableBehavior $uniqueSlugGenerator

$uniqueSlugGenerator public property

Slug unique value generator. It is used in case $ensureUnique enabled and generated slug is not unique. This should be a PHP callable with following signature:

function ($baseSlug, $iteration, $model)
{
    // return uniqueSlug
}

If not set unique slug will be generated adding incrementing suffix to the base slug.

doc_Yii
2016-10-30 16:52:51
Comments
Leave a Comment

Please login to continue.