Webiny\Component\TemplateEngine\Bridge\Smarty\Smarty::getForceCompile PHP Method

getForceCompile() public method

Returns the current value of force_compile flag.
public getForceCompile ( ) : boolean
return boolean
    public function getForceCompile()
    {
        return $this->smarty->force_compile;
    }

Usage Example

Esempio n. 1
0
 /**
  * @dataProvider dataProvider
  */
 public function testSetGetForceCompile(Smarty $smarty)
 {
     $this->assertFalse($smarty->getForceCompile());
     $smarty->setForceCompile(true);
     $this->assertTrue($smarty->getForceCompile());
 }