protected static function createSlug(string $input, array $rulesets = self::SLUG_RULESETS, string $separator = '-'): string {
    $slugify = new Slugify(['rulesets' => $rulesets, 'separator' => $separator]);
    $slug    = $slugify->slugify($input);

    return $slug;
  }
protected static function createSlug(string $input, array $rulesets = self::SLUG_RULESETS, string $separator = '-'): string {
    $slugify = new Slugify(['rulesets' => $rulesets, 'separator' => $separator]);
    $slug    = $slugify->slugify($input);

    return $slug;
  }
protected static function createSlug ( string $ input , array $ rulesets = self :: SLUG_RULESETS , string $ separator = '-' ) : string { $ slugify = new Slugify ( [ 'rulesets' => $ rulesets , 'separator' => $ separator ] ) ; $ slug = $ slugify -> slugify ( $ input ) ; return $ slug ; }
Creates a slug from an input.

@param string $input The input to create a slug from
@param array $rulesets The optional rulesets, defaults to `SlugViewHelper::SLUG_RULESETS`
@param string $separator The optional separator, defaults to `-`
@return string The slug
Creates a slug from an input .