function show_title_block in Show title 2.0.x
Same name and namespace in other branches
- 8 show_title.module \show_title_block()
Define if the block title need to show.
Return value
bool For show block.
2 calls to show_title_block()
- show_title_block_access in ./
show_title.module - Implements hook_block_access().
- show_title_preprocess_page in ./
show_title.module - Implements hook_preprocess_HOOK().
File
- ./
show_title.module, line 138 - Module Show Title.
Code
function show_title_block() {
$show_block_title = TRUE;
if (\Drupal::service('router.admin_context')
->isAdminRoute()) {
return $show_block_title;
}
if (\Drupal::service('path.matcher')
->isFrontPage()) {
$show_block_title = FALSE;
}
if (show_title_is_in_display_mode()) {
$show_block_title = FALSE;
}
return $show_block_title;
}