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

getAutoload() public method

Get the state of view template auto load.
public getAutoload ( ) : boolean
return boolean
    public function getAutoload()
    {
        return $this->autoloadViewTemplate;
    }

Usage Example

Example #1
0
 public function testSetGetAutload()
 {
     $view = new View();
     $this->assertTrue($view->getAutoload());
     $view->setAutoload(false);
     $this->assertFalse($view->getAutoload());
 }