You are here

protected function TeamAppListBuilder::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.

Overrides AppListBuilder::buildInfoRow

File

modules/apigee_edge_teams/src/Entity/ListBuilder/TeamAppListBuilder.php, line 49

Class

TeamAppListBuilder
Lists _all_ team apps.

Namespace

Drupal\apigee_edge_teams\Entity\ListBuilder

Code

protected function buildInfoRow(AppInterface $app, array &$rows) {

  /** @var \Drupal\apigee_edge_teams\Entity\TeamAppInterface $app */

  /** @var \Drupal\apigee_edge_teams\Entity\TeamInterface[] $teams */
  $teams = $this->entityTypeManager
    ->getStorage('team')
    ->loadMultiple();
  $css_id = $this
    ->getCssIdForInfoRow($app);
  $rows[$css_id]['data']['team']['data'] = $teams[$app
    ->getCompanyName()]
    ->access('view') ? $teams[$app
    ->getCompanyName()]
    ->toLink()
    ->toRenderable() : $teams[$app
    ->getCompanyName()]
    ->label();
  parent::buildInfoRow($app, $rows);
}