public function KeywordListBuilder::buildRow in Alinks 8
Builds a row for an entity in the entity listing.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.
Return value
array A render array structure of fields for this entity.
Overrides EntityListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- src/
KeywordListBuilder.php, line 28
Class
- KeywordListBuilder
- Defines a class to build a listing of Keyword entities.
Namespace
Drupal\alinksCode
public function buildRow(EntityInterface $entity) {
/* @var $entity \Drupal\alinks\Entity\Keyword */
$row['name'] = Link::fromTextAndUrl($entity
->label(), new Url('entity.alink_keyword.edit_form', [
'alink_keyword' => $entity
->id(),
]));
return $row + parent::buildRow($entity);
}