DescriptionSuggestion.php in Linkit 8.5
File
src/Suggestion/DescriptionSuggestion.php
View source
<?php
namespace Drupal\linkit\Suggestion;
class DescriptionSuggestion extends SimpleSuggestion implements SuggestionDescriptionInterface {
protected $description;
public function getDescription() {
return $this->description;
}
public function setDescription($description) {
$this->description = $description;
return $this;
}
public function jsonSerialize() {
return parent::jsonSerialize() + [
'description' => $this
->getDescription(),
];
}
}