Use duplicates of core functions, with notes about when to delete them and just…

Authored by Isarra on Fri, May 19, 8:41 PM.

Description

Use duplicates of core functions, with notes about when to delete them and just use core

Also move getPortlet to the bottom before them, since it's NEXT. (Also fix
that error with that hook using renderafter instead of getafterportlet.)

Change-Id: I6efe32634557046cc904f801461c097656b90681