UrlHelper::getAllowedProtocols

public static UrlHelper::getAllowedProtocols()

Gets the allowed protocols.

Return value

array An array of protocols, for example http, https and irc.

File

core/lib/Drupal/Component/Utility/UrlHelper.php, line 287

Class

UrlHelper
Helper class URL based methods.

Namespace

Drupal\Component\Utility

Code

1
2
3
public static function getAllowedProtocols() {
  return static::$allowedProtocols;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.