# Reactions::display_rows()

The reaction chips for one object: every registered reaction with a count or the viewer's mark, then unknown slugs with counts.

```php
display_rows( array $counts, array $user_slugs, string $key_base = '', array $reactors_by_slug = array(), ?array $types = null, string $object_type = '', int $object_id = 0 ): array
```

## Parameters

- `$counts` (array<string, int>) Counts keyed by reaction slug.
- `$user_slugs` (string[]) Slugs the viewer has on the object.
- `$key_base` (string) Unique key of the object on the page (prefix + ID); each chip's tooltip key is `{key_base}-{slug}`. Empty for none.
- `$reactors_by_slug` (array<string, array<int, array<string, string|int>>>) Reactor payloads per slug.
- `$types` (array<string, array<string, mixed>>|null) Reaction definitions (default: the shared registry).
- `$object_type` (string) Registered object type, so "See all" can ask for the full list. Empty for none.
- `$object_id` (int) Object ID.

## Return

`array<int, array<string, mixed>>` 

## Changelog

| Version | Description |
| --- | --- |
| 1.6.4 | Updated |
| 1.6.2 | Introduced |
