public function LinkConfigurationStorageListBuilder::buildRow in Menu Token 8
Same name and namespace in other branches
- 9.1.x src/LinkConfigurationStorageListBuilder.php \Drupal\menu_token\LinkConfigurationStorageListBuilder::buildRow()
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/
LinkConfigurationStorageListBuilder.php, line 28
Class
- LinkConfigurationStorageListBuilder
- Provides a listing of Link configuration storage entities.
Namespace
Drupal\menu_tokenCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
$row['linkid'] = $entity->linkid;
$row['configurationSerialized'] = $entity->configurationSerialized;
// You probably want a few more properties here...
return $row + parent::buildRow($entity);
}