You are here

public function SimpleSuggestion::jsonSerialize in Linkit 8.5

1 call to SimpleSuggestion::jsonSerialize()
DescriptionSuggestion::jsonSerialize in src/Suggestion/DescriptionSuggestion.php
1 method overrides SimpleSuggestion::jsonSerialize()
DescriptionSuggestion::jsonSerialize in src/Suggestion/DescriptionSuggestion.php

File

src/Suggestion/SimpleSuggestion.php, line 79

Class

SimpleSuggestion
Defines a simple suggestion.

Namespace

Drupal\linkit\Suggestion

Code

public function jsonSerialize() {
  return [
    'label' => $this
      ->getLabel(),
    'path' => $this
      ->getPath(),
    'group' => $this
      ->getGroup(),
  ];
}