Gtk.Entry.prototype.get_placeholder_text

function get_placeholder_text():String {
    // Gjs wrapper for gtk_entry_get_placeholder_text()
}

Retrieves the text that will be displayed when entry is empty and unfocused

Since 3.2

Returns

a pointer to the placeholder text as a string. This string points to internally allocated storage in the widget and must not be freed, modified or stored.