src/Charcoal/App/Route/TemplateRouteConfig.php
public function setTemplateData(array $templateData)
    {
        if (!isset($this->templateData)) {
            $this->templateData = [];
        }

        $this->templateData = array_merge($this->templateData, $templateData);

        return $this;
    }
public function setTemplateData(array $templateData)
    {
        if (!isset($this->templateData)) {
            $this->templateData = [];
        }

        $this->templateData = array_merge($this->templateData, $templateData);

        return $this;
    }
public function setTemplateData ( array $ templateData ) { if ( ! isset ( $ this -> templateData ) ) { $ this -> templateData = [ ] ; } $ this -> templateData = array_merge ( $ this -> templateData , $ templateData ) ; return $ this ; }
Set the template data for the view.

@param array $templateData The route template data.
@return TemplateRouteConfig Chainable
Set the template data for the view .