You are here

function oauth2_server_scope_load_multiple in OAuth2 Server 7

Loads multiple scope entities.

Parameters

string $server: The server machine name.

string[] $names: An array of scope machine names.

Return value

OAuth2ServerScope[] An array of scope entities indexed by their ids.

4 calls to oauth2_server_scope_load_multiple()
OAuth2ServerEntityController::save in includes/oauth2_server.server_controller.inc
Overrides EntityAPIControllerExportable::save().
oauth2_server_authorize_page in ./oauth2_server.pages.inc
Page callback: Authenticates the user and redirect back to the client with an authorization code.
oauth2_server_form_submit in includes/oauth2_server.server_admin.inc
Form API submit callback for the type form.
Storage::setScopeData in lib/Drupal/oauth2_server/Storage.php
Sets the "scopes" entityreference field on the passed entity.

File

./oauth2_server.module, line 485
Provides OAuth2 server functionality.

Code

function oauth2_server_scope_load_multiple($server, $names) {
  $values = array(
    'server' => $server,
    'name' => $names,
  );
  return oauth2_server_entity_load_by_properties('oauth2_server_scope', $values);
}