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

Breadcrumb

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

Ip::VERSIONS

File

vendor/symfony/validator/Constraints/Ip.php, line 70

Class

Ip
Validates that a value is a valid IP address.

Namespace

Symfony\Component\Validator\Constraints

Code

protected const VERSIONS = [
    self::V4,
    self::V6,
    self::ALL,
    self::V4_NO_PUBLIC,
    self::V6_NO_PUBLIC,
    self::ALL_NO_PUBLIC,
    self::V4_NO_PRIVATE,
    self::V6_NO_PRIVATE,
    self::ALL_NO_PRIVATE,
    self::V4_NO_RESERVED,
    self::V6_NO_RESERVED,
    self::ALL_NO_RESERVED,
    self::V4_ONLY_PUBLIC,
    self::V6_ONLY_PUBLIC,
    self::ALL_ONLY_PUBLIC,
    self::V4_ONLY_PRIVATE,
    self::V6_ONLY_PRIVATE,
    self::ALL_ONLY_PRIVATE,
    self::V4_ONLY_RESERVED,
    self::V6_ONLY_RESERVED,
    self::ALL_ONLY_RESERVED,
];

API Navigation

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