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

Breadcrumb

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

function Constraint::__toString

Same name in this branch
  1. 11.1.x core/lib/Drupal/Component/Version/Constraint.php \Drupal\Component\Version\Constraint::__toString()

Return value

string

Overrides ConstraintInterface::__toString

1 call to Constraint::__toString()
Constraint::getPrettyString in vendor/composer/semver/src/Constraint/Constraint.php

File

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

Class

Constraint
Defines a constraint.

Namespace

Composer\Semver\Constraint

Code

public function __toString() {
    return self::$transOpInt[$this->operator] . ' ' . $this->version;
}

API Navigation

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