url() public method

Returns the URL to be used in the according form.
Since: 3.0.0
public url ( ) : Inpsyde\MultilingualPress\Common\Type\URL
return Inpsyde\MultilingualPress\Common\Type\URL URL to submit updates to.
    /**
     * @return void
     */
    private function get_reset_table_link()
    {
        $request = remove_query_arg('msg', wp_unslash($_SERVER['REQUEST_URI']));
        $url = add_query_arg(['action' => $this->reset_action, $this->nonce->action() => (string) $this->nonce, '_wp_http_referer' => esc_attr($request)], (string) $this->setting->url());
        ?>
		<p>
			<a href="<?php 
        echo esc_url($url);
        ?>
" class="delete submitdelete" style="color:red">
				<?php 
        esc_html_e('Reset table to default values', 'multilingual-press');
        ?>
			</a>
		</p>
		<?php 
    }