SimpleSuggestion.php in Linkit 8.5
File
src/Suggestion/SimpleSuggestion.php
View source
<?php
namespace Drupal\linkit\Suggestion;
class SimpleSuggestion implements SuggestionInterface {
protected $label;
protected $path;
protected $group;
public function getLabel() {
return $this->label;
}
public function setLabel($label) {
$this->label = $label;
return $this;
}
public function getPath() {
return $this->path;
}
public function setPath($path) {
$this->path = $path;
return $this;
}
public function getGroup() {
return $this->group;
}
public function setGroup($group) {
$this->group = $group;
return $this;
}
public function jsonSerialize() {
return [
'label' => $this
->getLabel(),
'path' => $this
->getPath(),
'group' => $this
->getGroup(),
];
}
}