public function ExpiredCollector::deleteMultipleTokens in Simple OAuth (OAuth2) & OpenID Connect 8.2
Same name and namespace in other branches
- 8.4 src/ExpiredCollector.php \Drupal\simple_oauth\ExpiredCollector::deleteMultipleTokens()
- 8.3 src/ExpiredCollector.php \Drupal\simple_oauth\ExpiredCollector::deleteMultipleTokens()
- 5.x src/ExpiredCollector.php \Drupal\simple_oauth\ExpiredCollector::deleteMultipleTokens()
Deletes multiple tokens based on ID.
Parameters
\Drupal\simple_oauth\Entity\Oauth2TokenInterface[] $tokens: The token entity IDs.
File
- src/
ExpiredCollector.php, line 127
Class
- ExpiredCollector
- Service in charge of deleting or expiring tokens that cannot be used anymore.
Namespace
Drupal\simple_oauthCode
public function deleteMultipleTokens(array $tokens = []) {
$this->tokenStorage
->delete($tokens);
}