public function Constraint::__construct in Automatic Updates 7
Same name in this branch
- 7 vendor/drupal/core-version/Constraint.php \Drupal\Component\Version\Constraint::__construct()
- 7 vendor/composer/semver/src/Constraint/Constraint.php \Composer\Semver\Constraint\Constraint::__construct()
Constraint constructor.
Parameters
string $constraint: The constraint string to create the object from. For example, '>8.x-1.1'.
string $core_compatibility: Core compatibility declared for the current version of Drupal core. Normally this is set to \Drupal::CORE_COMPATIBILITY by the caller.
File
- vendor/
drupal/ core-version/ Constraint.php, line 37
Class
- Constraint
- A value object representing a Drupal version constraint.
Namespace
Drupal\Component\VersionCode
public function __construct($constraint, $core_compatibility) {
$this->constraint = $constraint;
$this
->parseConstraint($constraint, $core_compatibility);
}