These docs are for v8. Click to read the latest docs for v9.

ReactionCounter

Reaction counter is an aggregated statistics about one reaction type of the reactable content.

Get reactions count

$totalWeight = $reactionCounter->getCount();

Get reactions weight

$totalWeight = $reactionCounter->getWeight();

📘

If Like has mass=1 then 3 likes will produce 3 total weight.

📘

Minimum weight value is -99999999999.99.
Maximum weight value is 99999999999.99.

Get type of reaction counter

$reactionCounter->getReactionType();