You are here

public function GdprConsentUserResolverInterface::resolve in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/ConsentUserResolver/GdprConsentUserResolverInterface.php \Drupal\gdpr_consent\ConsentUserResolver\GdprConsentUserResolverInterface::resolve()
  2. 8 modules/gdpr_consent/src/ConsentUserResolver/GdprConsentUserResolverInterface.php \Drupal\gdpr_consent\ConsentUserResolver\GdprConsentUserResolverInterface::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

3 methods override GdprConsentUserResolverInterface::resolve()
NodeResolver::resolve in modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/NodeResolver.php
Gets the user reference from the specified entity.
ProfileResolver::resolve in modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/ProfileResolver.php
Gets the user reference from the specified entity.
UserResolver::resolve in modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/UserResolver.php
Gets the user reference from the specified entity.

File

modules/gdpr_consent/src/ConsentUserResolver/GdprConsentUserResolverInterface.php, line 21

Class

GdprConsentUserResolverInterface
Interface GdprConsentUserResolverInterface.

Namespace

Drupal\gdpr_consent\ConsentUserResolver

Code

public function resolve(EntityInterface $entity);