public function getAjaxHandler()
    {
        if (!Request::ajax() || Request::method() != 'POST') {
            return null;
        }

        if ($handler = Request::header('X_OCTOBER_REQUEST_HANDLER')) {
            return trim($handler);
        }

        return null;
    }
public function getAjaxHandler()
    {
        if (!Request::ajax() || Request::method() != 'POST') {
            return null;
        }

        if ($handler = Request::header('X_OCTOBER_REQUEST_HANDLER')) {
            return trim($handler);
        }

        return null;
    }
public function getAjaxHandler ( ) { if ( ! Request :: ajax ( ) || Request :: method ( ) != 'POST' ) { return null ; } if ( $ handler = Request :: header ( 'X_OCTOBER_REQUEST_HANDLER' ) ) { return trim ( $ handler ) ; } return null ; }
Returns the AJAX handler for the current request, if available.
@return string
Returns the AJAX handler for the current request if available .