You are here

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

1 string reference to 'TawktoController::set_options'
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 102

Class

TawktoController

Namespace

Drupal\tawk_to\Controller

Code

public function set_options() {
  if (!empty($_REQUEST['options']) && 'POST' == $_SERVER["REQUEST_METHOD"]) {
    $options = trim($_REQUEST['options']);
    return $this->generator
      ->setOptions($options);
  }
}