You are here

public function HeartbeatFlagAttachmentPlugin::renderAttachmentsContent in Heartbeat 7

renderAttachmentsContent().

Overrides iHeartbeatPlugin::renderAttachmentsContent

File

modules/heartbeat_plugins/plugins/flagattachment.inc, line 109

Class

HeartbeatFlagAttachmentPlugin
Class HeartbeatFlagAttachmentPlugin.

Code

public function renderAttachmentsContent(HeartbeatActivity $heartbeatActivity) {
  if ($this->count > 0) {
    $heartbeatActivity
      ->add_attachment('<span class="heartbeat-flag-count">' . $this->flag
      ->get_label('flag_message', $heartbeatActivity) . '</span>');
  }
}