Dependency::$constraint

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/Dependency.php \Drupal\Core\Extension\Dependency::constraint
  2. 8.9.x core/lib/Drupal/Core/Extension/Dependency.php \Drupal\Core\Extension\Dependency::constraint
  3. 11.x core/lib/Drupal/Core/Extension/Dependency.php \Drupal\Core\Extension\Dependency::constraint

The Constraint object from the constraint string.

Type: \Drupal\Component\Version\Constraint

File

core/lib/Drupal/Core/Extension/Dependency.php, line 38

Class

Dependency
A value object representing dependency information.

Namespace

Drupal\Core\Extension

Code

protected $constraint;

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