You are here

class UserResolver in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/UserResolver.php \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\UserResolver
  2. 3.0.x modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/UserResolver.php \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\UserResolver

Resolves user reference for a Profile entity.

@GdprConsentUserResolver( id = "gdpr_consent_user_resolver", label = "GDPR Consent User Resolver", entityType = "user" ) @package Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver

Hierarchy

Expanded class hierarchy of UserResolver

File

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

Namespace

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

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

}

Members

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