You are here

private function AdminSettingsForm::removeProtocal in Acquia Lift Connector 8

Remove the protocal from an URL string.

Parameters

string $url: URL.

Return value

string Same URL as input except with the 'http://' and 'https://' trimmed.

1 call to AdminSettingsForm::removeProtocal()
AdminSettingsForm::setCredentialValues in src/Form/AdminSettingsForm.php
Set credential values.

File

src/Form/AdminSettingsForm.php, line 356
Contains \Drupal\acquia_lift\Form\AdminSettingsForm.

Class

AdminSettingsForm
Defines a form that configures settings.

Namespace

Drupal\acquia_lift\Form

Code

private function removeProtocal($url) {
  return preg_replace('~^https?://~', '', $url);
}