Constraint::$constraint

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Component/Version/Constraint.php \Drupal\Component\Version\Constraint::constraint
  2. 10 core/lib/Drupal/Component/Version/Constraint.php \Drupal\Component\Version\Constraint::constraint
  3. 11.x core/lib/Drupal/Component/Version/Constraint.php \Drupal\Component\Version\Constraint::constraint

The constraint represented as a string. For example '>=8.x-5.x'.

Type: string

File

core/lib/Drupal/Component/Version/Constraint.php, line 15

Class

Constraint
A value object representing a Drupal version constraint.

Namespace

Drupal\Component\Version

Code

protected $constraint;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.