class NodeResolver in General Data Protection Regulation 8
Same name and namespace in other branches
- 8.2 modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/NodeResolver.php \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\NodeResolver
- 3.0.x modules/gdpr_consent/src/Plugin/Gdpr/ConsentUserResolver/NodeResolver.php \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\NodeResolver
Resolves user reference for a Node entity.
@GdprConsentUserResolver( id = "gdpr_consent_node_resolver", label = "GDPR Consent Node Resolver", entityType = "node" ) @package Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver
Hierarchy
- class \Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolver\NodeResolver implements GdprConsentUserResolverInterface
Expanded class hierarchy of NodeResolver
File
- modules/
gdpr_consent/ src/ Plugin/ Gdpr/ ConsentUserResolver/ NodeResolver.php, line 18
Namespace
Drupal\gdpr_consent\Plugin\Gdpr\ConsentUserResolverView source
class NodeResolver implements GdprConsentUserResolverInterface {
/**
* {@inheritdoc}
*/
public function resolve(EntityInterface $entity) {
return $entity->uid->entity;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NodeResolver:: |
public | function |
Gets the user reference from the specified entity. Overrides GdprConsentUserResolverInterface:: |