function social_simple_theme_suggestions_social_simple_buttons_alter in Social simple 8
Same name and namespace in other branches
- 2.0.x social_simple.module \social_simple_theme_suggestions_social_simple_buttons_alter()
Implements hook_theme_suggestions_HOOK_alter().
File
- ./
social_simple.module, line 79 - Contains social.module..
Code
function social_simple_theme_suggestions_social_simple_buttons_alter(array &$suggestions, array $variables) {
if ($node = \Drupal::routeMatch()
->getParameter('node')) {
$suggestions[] = 'social_simple_buttons__' . $node
->getType();
}
}