You are here

protected function AppListBuilderTest::getStatusRowKey in Apigee Edge 8

Helper to get the status row key for an app.

Parameters

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

string $key: The key: warning or info.

Return value

string The status row key.

File

tests/src/Kernel/Entity/ListBuilder/AppListBuilderTest.php, line 398

Class

AppListBuilderTest
Tests the AppListBuilder.

Namespace

Drupal\Tests\apigee_edge\Kernel\Entity\ListBuilder

Code

protected function getStatusRowKey(AppInterface $app, $key = "warning") : string {
  return Html::getId($app
    ->getAppId()) . '-' . $key;
}