public function UserResolver::resolve in General Data Protection Regulation 8.2
Same name and namespace in other branches
- 8 modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/UserResolver.php \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\UserResolver::resolve()
- 3.0.x modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/UserResolver.php \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\UserResolver::resolve()
Gets the user reference from the specified entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity to use when finding the user.
Return value
\Drupal\user\Entity\User The user
Overrides GdprConsentUserResolverInterface::resolve
File
- modules/
gdpr_consent/ src/ Plugin/ Gdpr/ ConsentUserResolver/ UserResolver.php, line 23
Class
- UserResolver
- Resolves user reference for a Profile entity.
Namespace
Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolverCode
public function resolve(EntityInterface $entity) {
return $entity;
}