Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Removes Olark chat from non English pages.
- * @param $variables
- */
- function yourtheme_preprocess_html(&$variables) {
- $language = \Drupal::languageManager()->getCurrentLanguage()->getId();
- if ($language <>'en' && isset($variables['page_bottom']['olark'])) {
- unset($variables['page_bottom']['olark']);
- }
- }
Add Comment
Please, Sign In to add comment