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

Breadcrumb

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

function NamespaceUri::ensureValidUri

1 call to NamespaceUri::ensureValidUri()
NamespaceUri::__construct in vendor/theseer/tokenizer/src/NamespaceUri.php

File

vendor/theseer/tokenizer/src/NamespaceUri.php, line 18

Class

NamespaceUri

Namespace

TheSeer\Tokenizer

Code

private function ensureValidUri($value) : void {
    if (\strpos($value, ':') === false) {
        throw new NamespaceUriException(\sprintf("Namespace URI '%s' must contain at least one colon", $value));
    }
}

API Navigation

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