Magento2 获取 Controller, Module, Action, Router name
1 $controllerName = $this->getRequest()->getControllerName(); 2 $actionName = $this->getRequest()->getActionName(); 3 $routeName = $this->getRequest()->getRouteName(); 4 $moduleName = $this->getRequest()->getModuleName();

浙公网安备 33010602011771号