protected function AppListBuilder::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.
2 calls to AppListBuilder::renderAppName()
- AppListBuilder::buildInfoRow in src/
Entity/ ListBuilder/ AppListBuilder.php - Builds an info row for an app in the entity listing.
- DeveloperAppListBuilderForDeveloper::renderAppName in src/
Entity/ ListBuilder/ DeveloperAppListBuilderForDeveloper.php - Renders the name of an app for the entity list.
1 method overrides AppListBuilder::renderAppName()
- DeveloperAppListBuilderForDeveloper::renderAppName in src/
Entity/ ListBuilder/ DeveloperAppListBuilderForDeveloper.php - Renders the name of an app for the entity list.
File
- src/
Entity/ ListBuilder/ AppListBuilder.php, line 331
Class
- AppListBuilder
- General app list builder for developer and team apps.
Namespace
Drupal\apigee_edge\Entity\ListBuilderCode
protected function renderAppName(AppInterface $app) : array {
if ($app
->access('view')) {
return $app
->toLink()
->toRenderable();
}
return [
'#markup' => $app
->label(),
];
}