Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UrlHelper.php

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',
];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal