You are here

function opigno_group_manager_preprocess_html in Opigno group manager 8

Same name and namespace in other branches
  1. 3.x opigno_group_manager.module \opigno_group_manager_preprocess_html()

Implements hook_preprocess_page().

File

./opigno_group_manager.module, line 72
Contains opigno_group_manager.module.

Code

function opigno_group_manager_preprocess_html(&$variables) {

  // Remove admin bar for item form (included in iframe)
  if (\Drupal::routeMatch()
    ->getRouteName() == 'opigno_group_manager.manager.get_item_form') {
    unset($variables['page_top']);
  }
}