'#description' => $this->t('A positive time interval expression. Eg: "60 secs", "2 days", "10 hours", "7 weeks". Be sure you provide the time units (@unit), plurals are accepted.',
'#description' => $this->t('A positive time interval expression. Eg: "60 secs", "2 days", "10 hours", "7 weeks". Be sure you provide the time units (@unit), plurals are accepted.',
['@unit' => implode(self::TIME_INTERVALS, ", ")]
['@unit' => implode(", ", self::TIME_INTERVALS)]
),
),
];
];
@ -255,11 +255,11 @@ class IslandoraSettingsForm extends ConfigFormBase {
);
);
}
}
else {
else {
if (!preg_match("/\b(" . implode(self::TIME_INTERVALS, "|") . ")s?\b/", $expiry)) {
if (!preg_match("/\b(" . implode("|", self::TIME_INTERVALS) . ")s?\b/", $expiry)) {
$form_state->setErrorByName(
$form_state->setErrorByName(
self::JWT_EXPIRY,
self::JWT_EXPIRY,
$this->t("No time interval found, please include one of (@int). Plurals are also accepted.",
$this->t("No time interval found, please include one of (@int). Plurals are also accepted.",