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

Breadcrumb

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

function Constraint::getSupportedOperators

Get all supported comparison operators.

@phpstan-return list<self::STR_OP_*>

Return value

array

2 calls to Constraint::getSupportedOperators()
Constraint::versionCompare in vendor/composer/semver/src/Constraint/Constraint.php
@phpstan-param self::STR_OP_* $operator
Constraint::__construct in vendor/composer/semver/src/Constraint/Constraint.php
Sets operator and version to compare with.

File

vendor/composer/semver/src/Constraint/Constraint.php, line 171

Class

Constraint
Defines a constraint.

Namespace

Composer\Semver\Constraint

Code

public static function getSupportedOperators() {
    return array_keys(self::$transOpStr);
}

API Navigation

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