public function isReactionToVoteSupported(): bool
{
$options = XF::options();
if (!in_array($this->_structure->contentType, $options->pb_rtv_enabledTypes))
{
return false;
}
if (!$this->isContentVotingSupported())
{
return false;
}
return true;
}
public function getReactionToVoteContent() // Should return votable entity
{
return $this;
}