public function UserClaimsNormalizer::__construct in Simple OAuth (OAuth2) & OpenID Connect 5.x
UserClaimsNormalizer constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
string[] $claims: The list of claims being selected.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- src/
Normalizer/ UserClaimsNormalizer.php, line 56
Class
- UserClaimsNormalizer
- Normalizes a user entity to extract the claims.
Namespace
Drupal\simple_oauth\NormalizerCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, array $claims, ModuleHandlerInterface $module_handler) {
$this->userStorage = $entity_type_manager
->getStorage('user');
$this->claims = $claims;
$this->moduleHandler = $module_handler;
}