You are here

function thunder_amp_preprocess_media_twitter_tweet in Thunder 8.3

Implements hook_preprocess_HOOK().

File

themes/thunder_amp/thunder_amp.theme, line 65
Preprocess html for thunder_amp theme.

Code

function thunder_amp_preprocess_media_twitter_tweet(&$variables) {
  $explodedUrl = explode('/', $variables['path']);
  $variables['tweetid'] = end($explodedUrl);
}