Habari\Pluggable::_plugin_include_template_file PHP Метод

_plugin_include_template_file() публичный Метод

Potentially serve a different file for the requested template name
public _plugin_include_template_file ( string $file, string $name ) : string
$file string The filename of the template the theme will display
$name string The name of the template requested
Результат string The potentially modified filename to use for the requested template.
    public function _plugin_include_template_file($file, $name)
    {
        if (isset($this->_added_templates[$name])) {
            if ($this->_added_templates[$name][1] || !file_exists($file)) {
                $file = $this->_added_templates[$name][0];
            }
        }
        return $file;
    }