private function TawkToWidgetController::tawkToGetIframeUrl in Tawk.to - Live chat application (Drupal 8) 8
Same name and namespace in other branches
- 8.2 src/Controller/TawkToWidgetController.php \Drupal\tawk_to\Controller\TawkToWidgetController::tawkToGetIframeUrl()
Constructs url for configuration iframe.
Return value
string Base iframe URL.
1 call to TawkToWidgetController::tawkToGetIframeUrl()
- TawkToWidgetController::widgetsContent in src/
Controller/ TawkToWidgetController.php - Constructs a widgets content.
File
- src/
Controller/ TawkToWidgetController.php, line 77
Class
- TawkToWidgetController
- Controller routine that manages tawk.to widget settings.
Namespace
Drupal\tawk_to\ControllerCode
private function tawkToGetIframeUrl() {
$pageId = $this->config
->get('tawk_to_widget_page_id');
$widgetId = $this->config
->get('tawk_to_widget_id');
return self::TAWK_TO_PLUGINS_URL . '/generic/widgets?currentWidgetId=' . $widgetId . '¤tPageId=' . $pageId;
}