public function HeartbeatController::filterFeed in Heartbeat 8
1 string reference to 'HeartbeatController::filterFeed'
File
- src/
Controller/ HeartbeatController.php, line 217
Class
- HeartbeatController
- Class HeartbeatController.
Namespace
Drupal\heartbeat\ControllerCode
public function filterFeed($tid) {
$myConfig = \Drupal::service('config.factory')
->getEditable('heartbeat_hashtag.settings');
$myConfig
->set('tid', $tid)
->save();
$block = $this->blockManager
->createInstance('heartbeat_hash_block')
->build();
return [
'#type' => 'markup',
'#markup' => $this->renderer
->render($block),
];
}