private function SynonymListBuilder::buildEditLink in Search API Synonym 8
Build the edit link object.
Parameters
string $label: The label used in the link
\Drupal\search_api_synonym\Entity\Synonym $entity: The synonym entity object.
Return value
\Drupal\Core\Link The build link object.
1 call to SynonymListBuilder::buildEditLink()
- SynonymListBuilder::buildRow in src/
SynonymListBuilder.php - Builds a row for an entity in the entity listing.
File
- src/
SynonymListBuilder.php, line 121
Class
- SynonymListBuilder
- Defines a class to build a listing of Synonym entities.
Namespace
Drupal\search_api_synonymCode
private function buildEditLink($label, $entity) {
return new Link($label, new Url('entity.search_api_synonym.edit_form', [
'search_api_synonym' => $entity
->id(),
]));
}