You are here

private function AdminSettingsForm::removeAuthorizeSuffix in Acquia Lift Connector 8.3

Same name and namespace in other branches
  1. 8.4 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.

2 calls to AdminSettingsForm::removeAuthorizeSuffix()
AdminSettingsForm::buildCredentialForm in src/Form/AdminSettingsForm.php
Build credential form.
AdminSettingsForm::setCredentialValues in src/Form/AdminSettingsForm.php
Set credential values.

File

src/Form/AdminSettingsForm.php, line 566

Class

AdminSettingsForm
Defines a form that configures settings.

Namespace

Drupal\acquia_lift\Form

Code

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