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

Breadcrumb

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

function ValidatorInterface::validate

Same name in this branch
  1. 11.1.x vendor/symfony/validator/Validator/ValidatorInterface.php \Symfony\Component\Validator\Validator\ValidatorInterface::validate()

Returns true if the provided string represents a UUID

Parameters

string $uuid The string to validate as a UUID:

Return value

bool True if the string is a valid UUID, false otherwise

2 methods override ValidatorInterface::validate()
GenericValidator::validate in vendor/ramsey/uuid/src/Validator/GenericValidator.php
Returns true if the provided string represents a UUID
Validator::validate in vendor/ramsey/uuid/src/Rfc4122/Validator.php
Returns true if the provided string represents a UUID

File

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

Class

ValidatorInterface
A validator validates a string as a proper UUID

Namespace

Ramsey\Uuid\Validator

Code

public function validate(string $uuid) : bool;

API Navigation

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