public function Constraint::toArray in Automatic Updates 7
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'.
Return value
array[] The constraint represented as an array.
Deprecated
in Drupal 8.7.0, will be removed before Drupal 9.0.0. Only exists to provide a backwards compatibility layer.
See also
https://www.drupal.org/node/2756875
File
- vendor/
drupal/ core-version/ Constraint.php, line 69
Class
- Constraint
- A value object representing a Drupal version constraint.
Namespace
Drupal\Component\VersionCode
public function toArray() {
@trigger_error(sprintf('%s() only exists to provide a backwards compatibility layer. See https://www.drupal.org/node/2756875', __METHOD__), E_USER_DEPRECATED);
return $this->constraintArray;
}