You are here

public function TawktoController::settings in tawk.to Live Chat (Drupal 8) 8

1 string reference to 'TawktoController::settings'
tawk_to.routing.yml in tawk_to/tawk_to.routing.yml
tawk_to/tawk_to.routing.yml

File

tawk_to/src/Controller/TawktoController.php, line 50

Class

TawktoController

Namespace

Drupal\tawk_to\Controller

Code

public function settings() {

  // return $this->generator->settings();
  // $build = array(
  //   '#type' => 'markup',
  //   '#markup' => t('Hello World!'),
  // );
  // return $build;
  // return $this->generator->getIframe();
  // return new Response($this->generator->getIframe());
  $build = array(
    '#type' => 'inline_template',
    '#template' => $this->generator
      ->getIframe(),
  );
  return $build;
}