You are here

public function HeartbeatController::renderFeed in Heartbeat 8

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

File

src/Controller/HeartbeatController.php, line 198

Class

HeartbeatController
Class HeartbeatController.

Namespace

Drupal\heartbeat\Controller

Code

public function renderFeed($arg) {
  $myConfig = \Drupal::service('config.factory')
    ->getEditable('heartbeat_feed.settings');
  $myConfig
    ->set('message', $arg)
    ->save();
  \Drupal::logger('HeartbeatController')
    ->debug('My argument is %arg', [
    '%arg' => $arg,
  ]);
  return BlockViewBuilder::lazyBuilder('heartbeatblock', 'full');
}