Constraint::$constraintArray

Same name in other branches
  1. 9 core/lib/Drupal/Component/Version/Constraint.php \Drupal\Component\Version\Constraint::constraintArray
  2. 10 core/lib/Drupal/Component/Version/Constraint.php \Drupal\Component\Version\Constraint::constraintArray
  3. 11.x core/lib/Drupal/Component/Version/Constraint.php \Drupal\Component\Version\Constraint::constraintArray

A list of associative arrays representing the constraint.

Each containing the keys:

  • 'op': can be one of: '=', '==', '!=', '<>', '<', '<=', '>', or '>='.
  • 'version': A complete version, e.g. '4.5-beta3'.

Type: array[]

File

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

Class

Constraint
A value object representing a Drupal version constraint.

Namespace

Drupal\Component\Version

Code

protected $constraintArray = [];

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