This page redirects to an external site: https://developer.wordpress.org/reference/classes/wp_widget/get_field_name/
This function is used to uniquely identify form fields in the configuration form of Widgets. It should be used to generate field-ids for labeling the form fields in the widget configuration form.
function form( $instance ) {
?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>">Title:</label>
<input type="text" value="<?php echo $instance['title']; ?>" name="<?php echo $this->get_field_name( 'title' ); ?>">
</p>
<?php
}
get_field_name is located in wp-includes/class-wp-widget.php.