You are here

private function SamlauthConfigureForm::fixFolderPath in SAML Authentication 8.2

Remove trailing slash from a folder name, to unify config values.

2 calls to SamlauthConfigureForm::fixFolderPath()
SamlauthConfigureForm::submitForm in src/Form/SamlauthConfigureForm.php
Form submission handler.
SamlauthConfigureForm::validateForm in src/Form/SamlauthConfigureForm.php
Form validation handler.

File

src/Form/SamlauthConfigureForm.php, line 520

Class

SamlauthConfigureForm
Provides a configuration form for samlauth module settings and IDP/SP info.

Namespace

Drupal\samlauth\Form

Code

private function fixFolderPath($path) {
  if ($path) {
    $path = rtrim($path, '/');
  }
  return $path;
}