public static function identifier(string $name, string $separator = '_'): string {
    $slugify    = new Slugify(['separator' => $separator]);
    $identifier = $slugify->slugify($name);

    return $identifier;
  }
public static function identifier(string $name, string $separator = '_'): string {
    $slugify    = new Slugify(['separator' => $separator]);
    $identifier = $slugify->slugify($name);

    return $identifier;
  }
public static function identifier ( string $ name , string $ separator = '_' ) : string { $ slugify = new Slugify ( [ 'separator' => $ separator ] ) ; $ identifier = $ slugify -> slugify ( $ name ) ; return $ identifier ; }
Gets an identifier from a name.

@param string $name The name
@param string $separator The optional separator, defaults to `_`
@return string The identifier
Gets an identifier from a name .