You are here

public function HeartbeatController::filterFeed in Heartbeat 8

1 string reference to 'HeartbeatController::filterFeed'
heartbeat.routing.yml in ./heartbeat.routing.yml
heartbeat.routing.yml

File

src/Controller/HeartbeatController.php, line 217

Class

HeartbeatController
Class HeartbeatController.

Namespace

Drupal\heartbeat\Controller

Code

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),
  ];
}