behaviors\SluggableBehavior generateSlug()

generateSlug() protected method

This method is called by getValue() to generate the slug.

You may override it to customize slug generation. The default implementation calls yii\helpers\Inflector::slug() on the input strings concatenated by dashes (-).

protected string generateSlug ( $slugParts )
$slugParts array

An array of strings that should be concatenated and converted to generate the slug value.

return string

The conversion result.

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

Please login to continue.