public static function SettingsHelper::isInvalidCredentialOauthUrl in Acquia Lift Connector 8.3
Is an invalid credential OAuth URL. Invalid if: 1) Exist, and 2) Not a valid URL.
Parameters
string: Credential OAuth URL.
Return value
boolean True if is an invalid credential OAuth URL.
3 calls to SettingsHelper::isInvalidCredentialOauthUrl()
- AdminSettingsForm::preValidateData in src/
Form/ AdminSettingsForm.php - Pre-validate data.
- AdminSettingsForm::validateCredentialValues in src/
Form/ AdminSettingsForm.php - SettingsHelperTest::testIsInvalidCredentialOauthUrl in tests/
src/ Unit/ Service/ Helper/ SettingsHelperTest.php - Tests the isInvalidCredentialOauthUrl() method.
File
- src/
Service/ Helper/ SettingsHelper.php, line 122
Class
- SettingsHelper
- Defines the Settings Helper class.
Namespace
Drupal\acquia_lift\Service\HelperCode
public static function isInvalidCredentialOauthUrl($oauth_url) {
if (!empty($oauth_url) && !UrlHelper::isValid($oauth_url)) {
return TRUE;
}
return FALSE;
}