public function ServerListBuilder::buildRow in GraphQL 8.4
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/
Controller/ ServerListBuilder.php, line 30
Class
- ServerListBuilder
- Admin page controller that shows the list of configured GraphQL servers.
Namespace
Drupal\graphql\ControllerCode
public function buildRow(EntityInterface $entity) {
return [
'label' => $entity
->label(),
] + parent::buildRow($entity);
}