You are here

function tawk_to_page_bottom in Tawk.to - Live chat application (Drupal 8) 8

Same name and namespace in other branches
  1. 8.2 tawk_to.module \tawk_to_page_bottom()

Implements hook_page_bottom().

Hook for adding widget script to every page.

See also

hook_page_bottom()

File

./tawk_to.module, line 30
Contains main module code.

Code

function tawk_to_page_bottom(array &$page_bottom) {
  $page_bottom['tawk_to_widget'] = \Drupal::service('tawk_to.embed_render')
    ->render();
}