[#33044] JHelperContent::getActions() function improvements. Fix #2728

JHelperContent::getActions() function improvements

Update with master

Backwards compatibility for getActions()
[CodeStyle] Make Jenkins happy