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