public function UserModuleStatusListBuilder::buildRow in Opigno module 8
Same name and namespace in other branches
- 3.x src/UserModuleStatusListBuilder.php \Drupal\opigno_module\UserModuleStatusListBuilder::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/
UserModuleStatusListBuilder.php, line 28
Class
- UserModuleStatusListBuilder
- Defines a class to build a listing of User module status entities.
Namespace
Drupal\opigno_moduleCode
public function buildRow(EntityInterface $entity) {
/* @var $entity \Drupal\opigno_module\Entity\UserModuleStatus */
$row['id'] = $entity
->id();
$row['name'] = Link::createFromRoute($entity
->label(), 'entity.user_module_status.edit_form', [
'user_module_status' => $entity
->id(),
]);
return $row + parent::buildRow($entity);
}