public function ApiDocListBuilder::buildRow in Apigee API Catalog 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/
Entity/ ListBuilder/ ApiDocListBuilder.php, line 74
Class
- ApiDocListBuilder
- Defines a class to build a listing of API Doc entities.
Namespace
Drupal\apigee_api_catalog\Entity\ListBuilderCode
public function buildRow(EntityInterface $entity) {
/* @var $entity \Drupal\apigee_api_catalog\Entity\ApiDoc */
$row['id'] = $entity
->id();
$row['name'] = $entity
->toLink();
return $row + parent::buildRow($entity);
}