You are here

public function Pathautoi18nTest::getCleanStringSuffix in Pathauto i18n 7

Return suffix for certain language.

3 calls to Pathautoi18nTest::getCleanStringSuffix()
Pathautoi18nNodeTest::testCleanString in tests/pathauto_i18n_node.test
Test clearing of string.
Pathautoi18nTaxonomyTest::testCleanString in tests/pathauto_i18n_taxonomy.test
Test clearing of string.
Pathautoi18nUserTest::testCleanString in tests/pathauto_i18n_user.test
Test clearing of string.

File

tests/pathauto_i18n.test.inc, line 87
Tests for the pathauto_i18n node module.

Class

Pathautoi18nTest
Test functionality for nodes when language selected.

Code

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