# ContentName Criterion

The [`ContentName` Search Criterion](https://github.com/ibexa/core/blob/main/src/contracts/Repository/Values/Content/Query/Criterion/ContentName.php) searches for content by its name.

## Arguments

- `value` - string representing the content name, the wildcard character `*` can be used for partial search

## Example

### PHP

```
$query->query = new Criterion\ContentName('*phone');
```

### REST API

**XML**

```
<Query>
    <Filter>
        <ContentNameCriterion>*phone</ContentNameCriterion>
    </Filter>
</Query>
```

**JSON**

```
"Query": {
    "Filter": {
        "ContentNameCriterion": "*phone"
    }
}
```
