Timber\Timber::add_route PHP Метод

add_route() публичный статический Метод

Add route.
Устаревший: since 0.20.0 and will be removed in 1.1
public static add_route ( string $route, callable $callback, array $args = [] )
$route string
$callback callable
$args array
    public static function add_route($route, $callback, $args = array())
    {
        Helper::warn('Timber::add_route (and accompanying methods for load_view, etc. Have been deprecated and will soon be removed. Please update your theme with Route::map. You can read more in the 1.0 Upgrade Guide: https://github.com/timber/timber/wiki/1.0-Upgrade-Guide');
        \Routes::map($route, $callback, $args);
    }