public function getControllerActionName()
    {
        $controllerObjectName = $this->getControllerObjectName();
        if ($controllerObjectName !== '' && ($this->controllerActionName === strtolower($this->controllerActionName))) {
            $controllerClassName = $this->objectManager->getClassNameByObjectName($controllerObjectName);
            $lowercaseActionMethodName = strtolower($this->controllerActionName) . 'action';
            foreach (get_class_methods($controllerClassName) as $existingMethodName) {
                if (strtolower($existingMethodName) === $lowercaseActionMethodName) {
                    $this->controllerActionName = substr($existingMethodName, 0, -6);
                    break;
                }
            }
        }
        return $this->controllerActionName;
    }
public function getControllerActionName()
    {
        $controllerObjectName = $this->getControllerObjectName();
        if ($controllerObjectName !== '' && ($this->controllerActionName === strtolower($this->controllerActionName))) {
            $controllerClassName = $this->objectManager->getClassNameByObjectName($controllerObjectName);
            $lowercaseActionMethodName = strtolower($this->controllerActionName) . 'action';
            foreach (get_class_methods($controllerClassName) as $existingMethodName) {
                if (strtolower($existingMethodName) === $lowercaseActionMethodName) {
                    $this->controllerActionName = substr($existingMethodName, 0, -6);
                    break;
                }
            }
        }
        return $this->controllerActionName;
    }
public function getControllerActionName ( ) { $ controllerObjectName = $ this -> getControllerObjectName ( ) ; if ( $ controllerObjectName !== '' && ( $ this -> controllerActionName === strtolower ( $ this -> controllerActionName ) ) ) { $ controllerClassName = $ this -> objectManager -> getClassNameByObjectName ( $ controllerObjectName ) ; $ lowercaseActionMethodName = strtolower ( $ this -> controllerActionName ) . 'action' ; foreach ( get_class_methods ( $ controllerClassName ) as $ existingMethodName ) { if ( strtolower ( $ existingMethodName ) === $ lowercaseActionMethodName ) { $ this -> controllerActionName = substr ( $ existingMethodName , 0 , - 6 ) ; break ; } } } return $ this -> controllerActionName ; }
Returns the name of the action the controller is supposed to execute.

@return string Action name
@api
Returns the name of the action the controller is supposed to execute .