def __get_menu_entries(self, kibiter_major):
menu_entries = []<EOL>for entry in self.panels_menu:<EOL><INDENT>if entry['<STR_LIT:source>'] not in self.data_sources:<EOL><INDENT>continue<EOL><DEDENT>parent_menu_item = {<EOL>'<STR_LIT:name>': entry['<STR_LIT:name>'],<EOL>'<STR_LIT:title>': entry['<STR_LIT:name>'],<EOL>'<STR_LIT:description>': "<STR_LIT>",<EOL>'<STR_LIT:type>': "<STR_LIT>",<EOL>'<STR_LIT>': []<EOL>}<EOL>for subentry in entry['<STR_LIT>']:<EOL><INDENT>try:<EOL><INDENT>dash_name = get_dashboard_name(subentry['<STR_LIT>'])<EOL><DEDENT>except FileNotFoundError:<EOL><INDENT>logging.error("<STR_LIT>", subentry['<STR_LIT>'])<EOL>continue<EOL><DEDENT>child_item = {<EOL>"<STR_LIT:name>": subentry['<STR_LIT:name>'],<EOL>"<STR_LIT:title>": subentry['<STR_LIT:name>'],<EOL>"<STR_LIT:description>": "<STR_LIT>",<EOL>"<STR_LIT:type>": "<STR_LIT>",<EOL>"<STR_LIT>": dash_name<EOL>}<EOL>parent_menu_item['<STR_LIT>'].append(child_item)<EOL><DEDENT>menu_entries.append(parent_menu_item)<EOL><DEDENT>return menu_entries<EOL>
Get the menu entries from the panel definition