You are here

public function AliasCleanerInterface::getCleanSeparators in Pathauto 8

Trims duplicate, leading, and trailing separators from a string.

Parameters

string $string: The string to clean path separators from.

string $separator: The path separator to use when cleaning.

Return value

string The cleaned version of the string.

See also

pathauto_cleanstring()

pathauto_clean_alias()

1 method overrides AliasCleanerInterface::getCleanSeparators()
AliasCleaner::getCleanSeparators in src/AliasCleaner.php
Trims duplicate, leading, and trailing separators from a string.

File

src/AliasCleanerInterface.php, line 40

Class

AliasCleanerInterface
@todo add class comment.

Namespace

Drupal\pathauto

Code

public function getCleanSeparators($string, $separator = NULL);