function social_media_links_theme_suggestions_social_media_links_platforms in Social Media Links Block and Field 8.2
Implements hook_theme_suggestions_HOOK() for "social_media_links_platforms".
File
- ./
social_media_links.module, line 27 - Allows to add a block with the links to various social media platforms.
Code
function social_media_links_theme_suggestions_social_media_links_platforms(array $variables) {
$suggestions = [];
// If there is a custom suggestion add it to our base suggestion.
if (!empty($variables['appearance']['suggestion'])) {
$suggestions[] = 'social_media_links_platforms__' . $variables['appearance']['suggestion'];
}
return $suggestions;
}