You are here

private function AdminSettingsForm::removeAuthorizeSuffix in Acquia Lift Connector 8.4

Same name and namespace in other branches
  1. 8.3 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::removeAuthorizeSuffix()

Remove the "/authorize" suffix, if any.

Parameters

string $url: URL.

Return value

string URL, but with "/authorize" removed.

File

src/Form/AdminSettingsForm.php, line 545

Class

AdminSettingsForm
Defines a form that configures settings.

Namespace

Drupal\acquia_lift\Form

Code

private function removeAuthorizeSuffix($url) {
  return preg_replace('~/authorize$~', '', $url);
}