public function WebformCompositeListBuilder::buildRow in Webform Composite Tools 8
Builds a row for an composite in the listing.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity for which to build the row.
Return value
array A render array of the table row for displaying the entity.
Overrides EntityListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListController::render()
File
- src/
Controller/ WebformCompositeListBuilder.php, line 46
Class
- WebformCompositeListBuilder
- Provides a listing of Reusable Webform Composites entities.
Namespace
Drupal\webform_composite\ControllerCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['machine_name'] = $entity
->id();
$row['description'] = $entity
->getDescription();
return $row + parent::buildRow($entity);
}