You are here

public function OAuth2ServerClientUIController::__construct in OAuth2 Server 7

Overrides EntityDefaultUIController::__construct

File

includes/oauth2_server.client_admin.inc, line 12
Admin UI for clients.

Class

OAuth2ServerClientUIController
UI controller.

Code

public function __construct($entity_type, $entity_info) {
  $this->statusKey = 'status';
  $this->entityType = $entity_type;
  $this->entityInfo = $entity_info;

  // Stop the UI from mentioning "OAuth2 client" everywhere.
  $this->entityInfo['label'] = 'Client';

  // Replace the client placeholder with the server name, since the path
  // is used for links and redirects.
  $this->path = str_replace('%oauth2_server_client', arg(4), $this->entityInfo['admin ui']['path']);
}