"Edit This Page" functionality
Assuming you're referring to the Admin menu module then you can head to the configuration page under admin/config/administration/admin_menu and under the System tweaks tab you can check the option for Move local tasks into menu.