You are here

public function Constraint::__toString in Automatic Updates 7

Same name in this branch
  1. 7 vendor/drupal/core-version/Constraint.php \Drupal\Component\Version\Constraint::__toString()
  2. 7 vendor/composer/semver/src/Constraint/Constraint.php \Composer\Semver\Constraint\Constraint::__toString()

Gets the constraint as a string.

Can be used in the UI for reporting incompatibilities.

Return value

string The constraint as a string.

File

vendor/drupal/core-version/Constraint.php, line 50

Class

Constraint
A value object representing a Drupal version constraint.

Namespace

Drupal\Component\Version

Code

public function __toString() {
  return $this->constraint;
}