protected function normalizeActionName($actionMethod, $throwException = true)
    {
        if (!StringHelper::startsWith($actionMethod, 'action')) {
            $actionMethod = static::getActionMethod($actionMethod);
        }

        if (!method_exists($this, $actionMethod)) {
            if ($throwException) {
                throw new NotFoundException('Page not found');
            } else {
                return null;
            }
        }

        return $actionMethod;
    }
protected function normalizeActionName($actionMethod, $throwException = true)
    {
        if (!StringHelper::startsWith($actionMethod, 'action')) {
            $actionMethod = static::getActionMethod($actionMethod);
        }

        if (!method_exists($this, $actionMethod)) {
            if ($throwException) {
                throw new NotFoundException('Page not found');
            } else {
                return null;
            }
        }

        return $actionMethod;
    }
protected function normalizeActionName ( $ actionMethod , $ throwException = true ) { if ( ! StringHelper :: startsWith ( $ actionMethod , 'action' ) ) { $ actionMethod = static :: getActionMethod ( $ actionMethod ) ; } if ( ! method_exists ( $ this , $ actionMethod ) ) { if ( $ throwException ) { throw new NotFoundException ( 'Page not found' ) ; } else { return null ; } } return $ actionMethod ; }
Normalize action name
@param string $actionMethod
@param bool   $throwException
@return string|null
@throws NotFoundException
Normalize action name