Remove Log Link From Admin Menu Moodle 3.2

Re: Remove Log Link From Admin Menu Moodle 3.2

by Neill Magill -
Number of replies: 0
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

The following would remove the 'Site' node from the standard navigation:

if ($sitepages = $nav->find('site', navigation_node::TYPE_ROOTNODE)) { 
    $sitepages->remove(); 
}

You will want to do something that follows a similar pattern. I imagine the name of the node you are searching for will be something like 'logs' but that may require some experimentation (or finding the code that adds it)