function acquia_contenthub_element_info_alter in Acquia Content Hub 8
Implements hook_element_info_alter().
File
- ./
acquia_contenthub.module, line 285 - Contains acquia_contenthub.module.
Code
function acquia_contenthub_element_info_alter(&$type) {
// Remove the off-canvas page wrapper that was added to core in 8.5.0.
// This wrapper is only needed for the off-canvas dialog.
if (\Drupal::routeMatch()
->getRouteName() === 'acquia_contenthub.content_entity_display.entity') {
unset($type['page']['#theme_wrappers']['off_canvas_page_wrapper']);
}
}