You are here

function mmenu_theme_suggestions_mmenu in Mobile sliding menu 8

Implements hook_theme_suggestions_HOOK().

File

./mmenu.module, line 661
Primarily Drupal hooks and global API functions to manipulate mmenus.

Code

function mmenu_theme_suggestions_mmenu(array $variables) {
  $suggestions = array();
  if (!empty($variables['elements']['#mmenu']['name'])) {

    // Template suggestions.
    // mmenu--mmenu-right.html.twig.
    $suggestions[] = 'mmenu__' . $variables['elements']['#mmenu']['name'];
  }
  return $suggestions;
}