You are here

protected function DeveloperAppListBuilderForDeveloper::renderAppName in Apigee Edge 8

Renders the name of an app for the entity list.

Parameters

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

Return value

array Render array with the app name.

Overrides AppListBuilder::renderAppName

File

src/Entity/ListBuilder/DeveloperAppListBuilderForDeveloper.php, line 175

Class

DeveloperAppListBuilderForDeveloper
Lists developer apps of a developer on the UI.

Namespace

Drupal\apigee_edge\Entity\ListBuilder

Code

protected function renderAppName(AppInterface $app) : array {
  if ($app
    ->access('view')) {
    return $app
      ->toLink(NULL, 'canonical-by-developer')
      ->toRenderable();
  }
  return parent::renderAppName($app);
}