1.8.0
Improvements
Allow Slugged behavior to use custom slugger via 'mode'
config. Use any callable here.
It internally still uses the deprecated Inflector::slug()
, so you can also easily replace it now with the Text::slug()
method:
use Cake\Utility\Text;
...
$this->addBehavior('Tools.Slugged', ['mode' => [Text::class, 'slug']]);