function exclude_node_title_preprocess_node in Exclude Node Title 8
Same name and namespace in other branches
- 7 exclude_node_title.module \exclude_node_title_preprocess_node()
Implements hook_preprocess_node().
File
- ./
exclude_node_title.module, line 139 - Primarily Drupal hooks and global API functions to exclude node titles.
Code
function exclude_node_title_preprocess_node(&$vars) {
if (\Drupal::currentUser()
->hasPermission('use exclude node title')) {
\Drupal::service('exclude_node_title.manager')
->preprocessTitle($vars, $vars['node'], $vars['view_mode']);
}
}