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

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

Returns the requested representation format
public getFormat ( ) : string
Результат string The desired format, something like "html", "xml", "png", "json" or the like.
    public function getFormat()
    {
        return $this->format;
    }

Usage Example

 /**
  * @test
  */
 public function theRepresentationFormatCanBeSetAndRetrieved()
 {
     $this->actionRequest->setFormat('html');
     $this->assertEquals('html', $this->actionRequest->getFormat());
     $this->actionRequest->setFormat('doc');
     $this->assertEquals('doc', $this->actionRequest->getFormat());
     $this->actionRequest->setFormat('hTmL');
     $this->assertEquals('html', $this->actionRequest->getFormat());
 }
All Usage Examples Of Neos\Flow\Mvc\ActionRequest::getFormat