public function HeartbeatController::subCommentRequest in Heartbeat 8
1 string reference to 'HeartbeatController::subCommentRequest'
File
- src/
Controller/ HeartbeatController.php, line 251
Class
- HeartbeatController
- Class HeartbeatController.
Namespace
Drupal\heartbeat\ControllerCode
public function subCommentRequest($cid) {
$subCommentConfig = \Drupal::configFactory()
->getEditable('heartbeat_comment.settings');
$subCommentConfig
->set('cid', $cid)
->save();
$response = new AjaxResponse();
$response
->addCommand(new AppendCommand('#heartbeat-comment-' . $cid, BlockViewBuilder::lazyBuilder('heartbeatsubcommentblock', 'teaser')));
$response
->addCommand(new SubCommentCommand($cid));
return $response;
}