LPS-44460 Account for rails-like and php portlets that contain hooks
LPS-44460 Account for portlets that are also layout templates, themes, or web plugins