You are here

protected function AppListBuilder::buildInfoRow in Apigee Edge 8

Builds an info row for an app in the entity listing.

The info row contains the app's name (link to the details page), status and entity operations.

Parameters

\Drupal\apigee_edge\Entity\AppInterface $app: The app entity.

array $rows: The info row in the table for app.

2 calls to AppListBuilder::buildInfoRow()
AppListBuilder::render in src/Entity/ListBuilder/AppListBuilder.php
Builds the entity listing as renderable array for table.html.twig.
TeamAppListBuilder::buildInfoRow in modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListBuilder.php
Builds an info row for an app in the entity listing.
1 method overrides AppListBuilder::buildInfoRow()
TeamAppListBuilder::buildInfoRow in modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListBuilder.php
Builds an info row for an app in the entity listing.

File

src/Entity/ListBuilder/AppListBuilder.php, line 187

Class

AppListBuilder
General app list builder for developer and team apps.

Namespace

Drupal\apigee_edge\Entity\ListBuilder

Code

protected function buildInfoRow(AppInterface $app, array &$rows) {
  $css_id = $this
    ->getCssIdForInfoRow($app);
  $row = [
    'data' => [],
    'id' => $css_id,
    'class' => [
      'row--app',
      'row--info',
    ],
  ];
  $row['data']['name']['data'] = $this
    ->renderAppName($app);
  $row['data']['status']['data'] = $this
    ->renderAppStatus($app);
  $row['data'] += parent::buildRow($app);

  // Allow child classes to add items to the beginning of a row.
  if (array_key_exists($css_id, $rows)) {
    $rows[$css_id] = NestedArray::mergeDeep($rows[$css_id], $row);
  }
  else {
    $rows[$css_id] = $row;
  }
}