You are here

class ProfileResolver in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/ProfileResolver.php \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\ProfileResolver
  2. 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

Expanded class hierarchy of ProfileResolver

File

modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/ProfileResolver.php, line 18

Namespace

Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver
View source
class ProfileResolver implements GdprConsentUserResolverInterface {

  /**
   * {@inheritdoc}
   */
  public function resolve(EntityInterface $entity) {
    return $entity->uid->entity;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ProfileResolver::resolve public function Gets the user reference from the specified entity. Overrides GdprConsentUserResolverInterface::resolve