Neos\Flow\Mvc\ActionRequest::isMainRequest PHP Метод

isMainRequest() публичный Метод

Checks if this request is the uppermost ActionRequest, just one below the HTTP request.
public isMainRequest ( ) : boolean
Результат boolean
    public function isMainRequest()
    {
        return $this->parentRequest instanceof HttpRequest;
    }

Usage Example

 /**
  * Get a new RequestMatcher for the Request's ParentRequest
  *
  * @return RequestMatcher
  * @api
  */
 public function getParentRequest()
 {
     if ($this->request === null || $this->request->isMainRequest()) {
         return new RequestMatcher();
     }
     $this->addWeight(1000000);
     return new RequestMatcher($this->request->getParentRequest(), $this);
 }
All Usage Examples Of Neos\Flow\Mvc\ActionRequest::isMainRequest