| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 16 | public function getSlug(string $fieldValue): string |
||
| 17 | { |
||
| 18 | |||
| 19 | // use the standard SilverStripe tool for slugging URLs. This optionally may have a different transliterator |
||
| 20 | // associated with it |
||
| 21 | $slugger = new URLSegmentFilter(); |
||
| 22 | |||
| 23 | return $slugger->filter($fieldValue); |
||
| 24 | } |
||
| 26 |