You are here

public function AliasCleanerInterface::cleanAlias in Pathauto 8

Clean up an URL alias.

Performs the following alterations:

  • Trim duplicate, leading, and trailing back-slashes.
  • Trim duplicate, leading, and trailing separators.
  • Shorten to a desired length and logical position based on word boundaries.

Parameters

string $alias: A string with the URL alias to clean up.

Return value

string The cleaned URL alias.

1 method overrides AliasCleanerInterface::cleanAlias()
AliasCleaner::cleanAlias in src/AliasCleaner.php
Clean up an URL alias.

File

src/AliasCleanerInterface.php, line 24

Class

AliasCleanerInterface
@todo add class comment.

Namespace

Drupal\pathauto

Code

public function cleanAlias($alias);