Twig_Environment::isDebug PHP Method

isDebug() public method

Checks if debug mode is enabled.
public isDebug ( ) : boolean
return boolean true if debug mode is enabled, false otherwise
    public function isDebug()
    {
        return $this->debug;
    }

Same methods

Twig_Environment::isDebug ( )

Usage Example

 public function compress($html)
 {
     if (!$this->twig->isDebug() || $this->forceCompression) {
         return $this->parser->compress($html);
     }
     return $html;
 }
All Usage Examples Of Twig_Environment::isDebug