Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
7 | class SluggableHelper |
||
8 | { |
||
9 | /** |
||
10 | * Convert the configured field and it's associated value into a slug |
||
11 | * e.g. Liverpool Football Club => liverpool-football-club |
||
12 | * |
||
13 | * @param string $fieldValue The value of the field |
||
14 | * @return string field value sluggified |
||
15 | */ |
||
16 | public function getSlug(string $fieldValue): string |
||
26 |