You are here

public function Pathautoi18nTestBase::getCleanStringSuffix in Pathauto i18n 8

Return suffix for certain language.

File

src/Tests/Pathautoi18nTestBase.php, line 84
Tests for the pathauto_i18n node module.

Class

Pathautoi18nTestBase
Test functionality for nodes when language selected.

Namespace

Drupal\pathauto_i18n\Tests

Code

public function getCleanStringSuffix($skip_language) {
  $suffix = array();
  foreach ($this->availableLanguages as $language) {
    if ($language != $skip_language) {
      $suffix[] = $language;
    }
  }
  return implode('-', $suffix);
}