Handler for the specific profile post-related like aspects.

package XenForo_Like

 Methods

Gets content data (if viewable).

getContentData(array $contentIds, array $viewingUser) : array

This must check viewing permissions!

see \XenForo_LikeHandler_Abstract::getContentData()

Parameters

$contentIds

array

$viewingUser

array

Returns

arrayKeyed by content ID

Gets the name of the template that will be used when listing likes of this type.

getListTemplateName() : string

Returns

stringnews_feed_item_profile_post_like

Increments the like counter.

incrementLikeCounter(integer $contentId, array $latestLikes, integer $adjustAmount) 
see \XenForo_LikeHandler_Abstract::incrementLikeCounter()

Parameters

$contentId

integer

$latestLikes

array

A list of the latest likes this content has received.

$adjustAmount

integer

Adjusts the number of likes by this amount