| 1 | <?php |
||
| 10 | trait GenerateSlug |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Generate an appropriate slug from a title |
||
| 14 | * This function will turn a title into a lowercase and hyphenated title that is compatible with how Sculpin expects |
||
| 15 | * slugs. |
||
| 16 | * |
||
| 17 | * @param string $title Raw title |
||
| 18 | * |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | public function generateSlug($title) |
||
| 31 | } |