public function SuggestionCollection::addSuggestions in Linkit 8.5
Adds a collection of suggestions to the this collection.
Parameters
\Drupal\linkit\Suggestion\SuggestionCollection $suggestionCollection: A collection of suggestions.
File
- src/
Suggestion/ SuggestionCollection.php, line 43
Class
- SuggestionCollection
- Defines a suggestion collection used to avoid JSON Hijacking.
Namespace
Drupal\linkit\SuggestionCode
public function addSuggestions(SuggestionCollection $suggestionCollection) {
$this->suggestions = array_merge($this->suggestions, $suggestionCollection
->getSuggestions());
}