You are here

public function ConsumerInterface::grantSingleAuthorization in Authorization 8

Grant one individual proposal.

Parameters

\Drupal\user\UserInterface $user: The user to act upon.

mixed $mapping: What to grant.

2 methods override ConsumerInterface::grantSingleAuthorization()
DrupalRolesConsumer::grantSingleAuthorization in authorization_drupal_roles/src/Plugin/authorization/Consumer/DrupalRolesConsumer.php
Grant one individual proposal.
Dummy::grantSingleAuthorization in tests/modules/authorization_test/src/Plugin/authorization/Consumer/Dummy.php
Grant one individual proposal.

File

src/Consumer/ConsumerInterface.php, line 33

Class

ConsumerInterface
Defines an interface for Authorization consumer plugins.

Namespace

Drupal\authorization\Consumer

Code

public function grantSingleAuthorization(UserInterface $user, $mapping) : void;