public function WorkflowListBuilder::buildRow in Workflow 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/
WorkflowListBuilder.php, line 34
Class
- WorkflowListBuilder
- Defines a class to build a listing of Workflow entities.
Namespace
Drupal\workflowCode
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\workflow\Entity\Workflow $entity */
$row['id'] = $entity
->id();
$row['label'] = $entity
->label();
$row['status'] = '';
// @todo $entity->getStatus();
return $row + parent::buildRow($entity);
}