You are here

public static function UrlHelper::getAllowedProtocols in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Utility/UrlHelper.php \Drupal\Component\Utility\UrlHelper::getAllowedProtocols()

Gets the allowed protocols.

Return value

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

File

lib/Drupal/Component/Utility/UrlHelper.php, line 284
Contains \Drupal\Component\Utility\UrlHelper.

Class

UrlHelper
Helper class URL based methods.

Namespace

Drupal\Component\Utility

Code

public static function getAllowedProtocols() {
  return static::$allowedProtocols;
}