class UniversityDegreeController extends Controller
{
protected function beforeAction($action)
{
$actionId = $this->getAction()->getId();
echo $actionId; // 'index' | 'update' | 'delete'
return parent::beforeAction($action);
}
}