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

Breadcrumb

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

function UrlHelper::getAllowedProtocols

Gets the allowed protocols.

Return value

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

2 calls to UrlHelper::getAllowedProtocols()
IconFinder::getFileFromUrl in core/lib/Drupal/Core/Theme/Icon/IconFinder.php
Get filename from an URL source.
LinkExternalProtocolsConstraintValidator::validate in core/modules/link/src/Plugin/Validation/Constraint/LinkExternalProtocolsConstraintValidator.php
Checks if the passed value is valid.

File

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

Class

UrlHelper
Helper class URL based methods.

Namespace

Drupal\Component\Utility

Code

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

API Navigation

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