You are here

public function EntitySuggestion::jsonSerialize in Linkit 8.5

Overrides DescriptionSuggestion::jsonSerialize

File

src/Suggestion/EntitySuggestion.php, line 73

Class

EntitySuggestion
Defines a entity suggestion.

Namespace

Drupal\linkit\Suggestion

Code

public function jsonSerialize() {
  return parent::jsonSerialize() + [
    'entity_uuid' => $this->entityUuid,
    'entity_type_id' => $this->entityTypeId,
    'substitution_id' => $this->substitutionId,
  ];
}