class ProfileResolver in General Data Protection Regulation 8
Same name and namespace in other branches
- 8.2 modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/ProfileResolver.php \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\ProfileResolver
- 3.0.x modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/ProfileResolver.php \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\ProfileResolver
Resolves user reference for a Profile entity.
@GdprConsentUserResolver( id = "gdpr_consent_profile_resolver", label = "GDPR Consent Profile Resolver", entityType = "profile" ) @package Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver
Hierarchy
- class \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\ProfileResolver implements GdprConsentUserResolverInterface
Expanded class hierarchy of ProfileResolver
File
- modules/
gdpr_consent/ src/ Plugin/ Gdpr/ ConsentUserResolver/ ProfileResolver.php, line 18
Namespace
Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolverView source
class ProfileResolver implements GdprConsentUserResolverInterface {
/**
* {@inheritdoc}
*/
public function resolve(EntityInterface $entity) {
return $entity->uid->entity;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ProfileResolver:: |
public | function |
Gets the user reference from the specified entity. Overrides GdprConsentUserResolverInterface:: |