public function ExistingRightsFromConfigurationCheckingInterface::checkUserHasExistingRights in Commerce License 8.2
Checks whether the user already has the rights this license grants.
This is called on a configured plugin.
Parameters
\Drupal\user\UserInterface $user: The user being checked.
Return value
\Drupal\commerce_license\ExistingRights\ExistingRightsResult A rights result object specifying the result and messages.
3 methods override ExistingRightsFromConfigurationCheckingInterface::checkUserHasExistingRights()
- ExistingRightsCheckConfig::checkUserHasExistingRights in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ ExistingRightsCheckConfig.php - Checks whether the user already has the rights this license grants.
- Role::checkUserHasExistingRights in src/
Plugin/ Commerce/ LicenseType/ Role.php - Checks whether the user already has the rights this license grants.
- StateChangeWithRightsCheck::checkUserHasExistingRights in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ StateChangeWithRightsCheck.php - Checks whether the user already has the rights this license grants.
File
- src/
Plugin/ Commerce/ LicenseType/ ExistingRightsFromConfigurationCheckingInterface.php, line 33
Class
- ExistingRightsFromConfigurationCheckingInterface
- Interface for license types that check for existing rights using config.
Namespace
Drupal\commerce_license\Plugin\Commerce\LicenseTypeCode
public function checkUserHasExistingRights(UserInterface $user);