Link Search Menu Expand Document

Constructor: pendingSuggestion

Back to constructors index

Represents a custom pending suggestion ».

Attributes:

NameTypeRequiredDescription
suggestionstringYesThe suggestion ID, can be passed to help.dismissSuggestion.
titleTextWithEntitiesYesTitle of the suggestion.
descriptionTextWithEntitiesYesBody of the suggestion.
urlstringYesURL to open when the user clicks on the suggestion.

Type: PendingSuggestion

Example:

$pendingSuggestion = ['_' => 'pendingSuggestion', 'suggestion' => 'string', 'title' => TextWithEntities, 'description' => TextWithEntities, 'url' => 'string'];