/** * Returns a function returning the URL previously remembered. * @return \Closure A function returning the URL previously remembered. */ public function getPrevious() : \Closure { return function ($value, \Mustache_LambdaHelper $helper) { return UrlHelper::previous($helper->render($value) ?: null); }; }