public function pushTemplateDefinition(TemplateDefinition $templateDefinition, $fallbackToDefaultTemplate = false)
    {
        if (null !== $this->templateDefinition) {
            array_push($this->tplStack, [$this->templateDefinition, $this->fallbackToDefaultTemplate]);
        }

        $this->setTemplateDefinition($templateDefinition, $fallbackToDefaultTemplate);
    }
public function pushTemplateDefinition(TemplateDefinition $templateDefinition, $fallbackToDefaultTemplate = false)
    {
        if (null !== $this->templateDefinition) {
            array_push($this->tplStack, [$this->templateDefinition, $this->fallbackToDefaultTemplate]);
        }

        $this->setTemplateDefinition($templateDefinition, $fallbackToDefaultTemplate);
    }
public function pushTemplateDefinition ( TemplateDefinition $ templateDefinition , $ fallbackToDefaultTemplate = false ) { if ( null !== $ this -> templateDefinition ) { array_push ( $ this -> tplStack , [ $ this -> templateDefinition , $ this -> fallbackToDefaultTemplate ] ) ; } $ this -> setTemplateDefinition ( $ templateDefinition , $ fallbackToDefaultTemplate ) ; }
Set a new template definition, and save the current one

@param TemplateDefinition $templateDefinition
@param bool $fallbackToDefaultTemplate if true, resources will be also searched in the "default" template
Set a new template definition and save the current one