Merge branch 'master' of ssh://git.autonomic.zone:2222/autonomic-cooperative/opencase

This commit is contained in:
naomi 2022-06-05 17:15:53 +01:00
commit 6857bb8d4c
1 changed files with 7 additions and 1 deletions

View File

@ -2,8 +2,14 @@
namespace Drupal\opencase;
class Pluraliser {
const NO_CHANGE = ['Staff'];
public static function pluralise($text) {
return $text . "s";
if (in_array($text, self::NO_CHANGE)) {
return $text;
} else {
return $text . "s";
}
}
}