/usr/share/phpmyadmin/libraries/classes/Navigation/Nodes
Edit: /usr/share/phpmyadmin/libraries/classes/Navigation/Nodes/NodeFunctionContainer.php (1786B)
icon = Generator::getImage('b_routines', __('Functions'));
$this->links = [
'text' => Url::getFromRoute('/database/routines', [
'server' => $GLOBALS['server'],
'type' => 'FUNCTION',
]) . '&db=%1$s',
'icon' => Url::getFromRoute('/database/routines', [
'server' => $GLOBALS['server'],
'type' => 'FUNCTION',
]) . '&db=%1$s',
];
$this->realName = 'functions';
$newLabel = _pgettext('Create new function', 'New');
$new = NodeFactory::getInstanceForNewNode(
$newLabel,
'new_function italics'
);
$new->icon = Generator::getImage('b_routine_add', $newLabel);
$new->links = [
'text' => Url::getFromRoute('/database/routines', [
'server' => $GLOBALS['server'],
'item_type' => 'FUNCTION',
'add_item' => 1,
]) . '&db=%2$s',
'icon' => Url::getFromRoute('/database/routines', [
'server' => $GLOBALS['server'],
'item_type' => 'FUNCTION',
'add_item' => 1,
]) . '&db=%2$s',
];
$this->addChild($new);
}
}