Webiny\Component\Bootstrap\ApplicationClasses\View::getTitle PHP Method

getTitle() public method

Get the current page title.
public getTitle ( ) : string
return string
    public function getTitle()
    {
        return $this->title;
    }

Usage Example

Example #1
0
 public function testSetGetTitle()
 {
     $view = new View();
     $view->setTitle('Test Title');
     $this->assertSame('Test Title', $view->getTitle());
     $this->assertSame('<title>Test Title</title>', $view->getTitleHtml());
 }