You are here

GdprConsentUserResolverInterface.php in General Data Protection Regulation 3.0.x

File

modules/gdpr_consent/src/ConsentUserResolver/GdprConsentUserResolverInterface.php
View source
<?php

namespace Drupal\gdpr_consent\ConsentUserResolver;

use Drupal\Core\Entity\EntityInterface;

/**
 * Interface GdprConsentUserResolverInterface.
 */
interface GdprConsentUserResolverInterface {

  /**
   * Gets the user reference from the specified entity.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity to use when finding the user.
   *
   * @return \Drupal\user\Entity\User
   *   The user
   */
  public function resolve(EntityInterface $entity);

}

Interfaces

Namesort descending Description
GdprConsentUserResolverInterface Interface GdprConsentUserResolverInterface.