UserResolver.php in General Data Protection Regulation 3.0.x
Same filename and directory in other branches
File
modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/UserResolver.phpView source
<?php
namespace Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver;
use Drupal\Core\Entity\EntityInterface;
use Drupal\gdpr_consent\ConsentUserResolver\GdprConsentUserResolverInterface;
/**
* 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
*/
class UserResolver implements GdprConsentUserResolverInterface {
/**
* {@inheritdoc}
*/
public function resolve(EntityInterface $entity) {
return $entity;
}
}
Classes
Name | Description |
---|---|
UserResolver | Resolves user reference for a Profile entity. |