CleanUtils::generate_urlsegment
Generates an Url segment by a given string.
You can pass a DataObject as 2nd parameter, which's ClassName and ID will be used if the filtering on title fails.
Signature
public function generate_urlsegment(string
$title,
[DataObject
$instance = NULL] )
Parameters
$title
— string$instance
— DataObject
Returns
- string