public static function UrlHelper::setAllowedProtocols in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Utility/UrlHelper.php \Drupal\Component\Utility\UrlHelper::setAllowedProtocols()
Sets the allowed protocols.
Parameters
array $protocols: An array of protocols, for example http, https and irc.
File
- lib/
Drupal/ Component/ Utility/ UrlHelper.php, line 294 - Contains \Drupal\Component\Utility\UrlHelper.
Class
- UrlHelper
- Helper class URL based methods.
Namespace
Drupal\Component\UtilityCode
public static function setAllowedProtocols(array $protocols = array()) {
static::$allowedProtocols = $protocols;
}