You are here

public function AcquiaDAM_Client::hasAuthenticationError in Media: Acquia DAM 7

Check if there was an authentication error.

Return value

bool|string The authentication error key or FALSE if there is no error.

File

src/AcquiaDAM/AcquiaDAM_Client.inc, line 111

Class

AcquiaDAM_Client
Client for making API requests.

Code

public function hasAuthenticationError() {
  $qp = drupal_get_query_parameters(NULL, [
    'q',
    'page',
  ]);
  return empty($qp['error']) ? FALSE : $qp['error'];
}