reset($url, $full); } /** * Creates a reset URL. * The prefix and plugin params are resetting to default false. * * @param string|array $url URL. * @param bool $full If true, the full base URL will be prepended to the result * @return string Full translated URL with base path. */ public function reset($url = null, $full = false) { if (is_array($url)) { $url += ['prefix' => false, 'plugin' => false]; } return parent::build($url, $full); } /** * Returns a URL based on provided parameters. * * @param string|array $url URL. * @param bool $full If true, the full base URL will be prepended to the result * @return string Full translated URL with base path. */ public function complete($url = null, $full = false) { if (is_array($url)) { // Add query strings if (!isset($url['?'])) { $url['?'] = []; } $url['?'] += $this->request->query; } return parent::build($url, $full); } /** * Event listeners. * * @return array */ public function implementedEvents() { return []; } }