Mlp_Redirect_Settings_Data_Interface::get_checkbox_name PHP Method

get_checkbox_name() public method

Name attribute for the view's checkbox.
public get_checkbox_name ( ) : string
return string
    public function get_checkbox_name();

Usage Example

    public function render()
    {
        $name = $this->data->get_checkbox_name();
        $id = "{$name}_id";
        ?>
		<tr class="form-field">
			<th scope="row"><?php 
        esc_html_e('Redirection', 'multilingual-press');
        ?>
</th>
			<td>
				<label for="<?php 
        echo esc_attr($id);
        ?>
">
					<input type="checkbox" name="<?php 
        echo esc_attr($name);
        ?>
" value="1"
						id="<?php 
        echo esc_attr($id);
        ?>
"
						<?php 
        checked(1, $this->data->get_current_option_value());
        ?>
					>
					<?php 
        esc_html_e('Enable automatic redirection', 'multilingual-press');
        ?>
					<?php 
        echo \Inpsyde\MultilingualPress\nonce_field($this->nonce);
        ?>
				</label>
			</td>
		</tr>
		<?php 
    }
All Usage Examples Of Mlp_Redirect_Settings_Data_Interface::get_checkbox_name
Mlp_Redirect_Settings_Data_Interface