You are here

protected function ServiceEndpointResources::buildRow in Services 8.4

Same name and namespace in other branches
  1. 9.0.x src/Controller/ServiceEndpointResources.php \Drupal\services\Controller\ServiceEndpointResources::buildRow()

Build service resource table rows.

Return value

array An array of row items.

1 call to ServiceEndpointResources::buildRow()
ServiceEndpointResources::displayList in src/Controller/ServiceEndpointResources.php
List service resources.

File

src/Controller/ServiceEndpointResources.php, line 105

Class

ServiceEndpointResources
Class \Drupal\services\Controller\ServiceEndpointManageResource.

Namespace

Drupal\services\Controller

Code

protected function buildRow(ServiceEndpointInterface $service_endpoint, array $definition) {
  $row = [];
  $row['title']['data'] = [
    '#markup' => $definition['title'],
  ];
  $row['endpoint']['data'] = [
    '#markup' => $definition['path'],
  ];
  return $row;
}