UrlHelper::$allowedProtocols

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Utility/UrlHelper.php \Drupal\Component\Utility\UrlHelper::allowedProtocols
  2. 10 core/lib/Drupal/Component/Utility/UrlHelper.php \Drupal\Component\Utility\UrlHelper::allowedProtocols
  3. 11.x core/lib/Drupal/Component/Utility/UrlHelper.php \Drupal\Component\Utility\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.