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

Breadcrumb

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

function ValidatorInterface::getPattern

Returns the regular expression pattern used by this validator

@psalm-return non-empty-string

Return value

string The regular expression pattern this validator uses

2 methods override ValidatorInterface::getPattern()
GenericValidator::getPattern in vendor/ramsey/uuid/src/Validator/GenericValidator.php
@psalm-return non-empty-string @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty
Validator::getPattern in vendor/ramsey/uuid/src/Rfc4122/Validator.php
@psalm-return non-empty-string @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty

File

vendor/ramsey/uuid/src/Validator/ValidatorInterface.php, line 31

Class

ValidatorInterface
A validator validates a string as a proper UUID

Namespace

Ramsey\Uuid\Validator

Code

public function getPattern() : string;

API Navigation

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