The instance sfContextshould automatically be displayed at the level of representation of both $sf_context, so you can: $sf_context->getActionName().
However, I think this may not be the action you are looking for, because I think it could be the processed current action, which, if partial for the component, would be the action of the component. Not 100% on the fact that I never had to use / research :-)
source
share