public function ConsumerInterface::revokeGrants in Authorization 8
Revoke all previously applied and no longer valid grants.
Parameters
\Drupal\user\UserInterface $user: The user to act upon.
array $context: Grants applied during this procedure.
2 methods override ConsumerInterface::revokeGrants()
- DrupalRolesConsumer::revokeGrants in authorization_drupal_roles/
src/ Plugin/ authorization/ Consumer/ DrupalRolesConsumer.php - Revoke all previously applied and no longer valid grants.
- Dummy::revokeGrants in tests/
modules/ authorization_test/ src/ Plugin/ authorization/ Consumer/ Dummy.php - Revoke all previously applied and no longer valid grants.
File
- src/
Consumer/ ConsumerInterface.php, line 23
Class
- ConsumerInterface
- Defines an interface for Authorization consumer plugins.
Namespace
Drupal\authorization\ConsumerCode
public function revokeGrants(UserInterface $user, array $context) : void;