Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I need to display the breadcrumb only if the current user as a specific role.
I try to put this code in Breadcrumb visibility :
if (in_array('Conseiller', [current-user:roles])) {
return TRUE;
}
the role checked is 'Conseiller'.
Can you give me the good way ?
Regards,
Comments