src/View/FlexibleStringTemplate.php
protected function _getTemplateName($name, array &$data = []) {
        if (isset($this->_callbacks[$name])) {
            $data = call_user_func($this->_callbacks[$name], $data);
        }
        if ($this->_callback) {
            $data = call_user_func($this->_callback, $name, $data);
        }
        if (isset($data['templateName'])) {
            $name = $data['templateName'];
            unset($data['templateName']);
        }
        return $name;
    }
protected function _getTemplateName($name, array &$data = []) {
        if (isset($this->_callbacks[$name])) {
            $data = call_user_func($this->_callbacks[$name], $data);
        }
        if ($this->_callback) {
            $data = call_user_func($this->_callback, $name, $data);
        }
        if (isset($data['templateName'])) {
            $name = $data['templateName'];
            unset($data['templateName']);
        }
        return $name;
    }
protected function _getTemplateName ( $ name , array & $ data = [ ] ) { if ( isset ( $ this -> _callbacks [ $ name ] ) ) { $ data = call_user_func ( $ this -> _callbacks [ $ name ] , $ data ) ; } if ( $ this -> _callback ) { $ data = call_user_func ( $ this -> _callback , $ name , $ data ) ; } if ( isset ( $ data [ 'templateName' ] ) ) { $ name = $ data [ 'templateName' ] ; unset ( $ data [ 'templateName' ] ) ; } return $ name ; }
Retrieve a template name after checking the various callbacks.

@param string $name The original name of the template.
@param array $data The data to update.

@return string The new name of the template.
Retrieve a template name after checking the various callbacks .