/** * Renders an action menu component. * * ARIA references: * - http://www.w3.org/WAI/GL/wiki/Using_ARIA_menus * - http://stackoverflow.com/questions/12279113/recommended-wai-aria-implementation-for-navigation-bar-menu * * @param action_menu $menu * @return string HTML */ public function render_action_menu(action_menu $menu) { $context = $menu->export_for_template($this); return $this->render_from_template('core/action_menu', $context); }