UrlHelper::$allowedProtocols

The list of allowed protocols.

Type: array

File

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

Class

UrlHelper
Helper class URL based methods.

Namespace

Drupal\Component\Utility

Code

protected static $allowedProtocols = [
  'http',
  'https',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.