# Compat_Monitor::constraint_for()

The Clanbite versions a plugin says it works with.

A plugin that declares `Requires Clanbite` uses that. A first-party add-on released before the header existed (it uses the Clanbite
update server in its `Update URI`) is assumed to be built for Clanbite 1.x, which is true of every add-on that predates the
header. Anything else without the header is not judged.

```php
constraint_for( array $data ): string
```

## Parameters

- `$data` (array<string, mixed>) Plugin data from `get_plugins()`.

## Return

`string` Constraint, or an empty string when the plugin makes no claim.

## Changelog

| Version | Description |
| --- | --- |
| 1.6.0 | Introduced |
