public function DefaultProfileLoad::__construct in Open Social 10.1.x
Same name and namespace in other branches
- 10.0.x modules/social_features/social_profile/src/Plugin/GraphQL/DataProducer/DefaultProfileLoad.php \Drupal\social_profile\Plugin\GraphQL\DataProducer\DefaultProfileLoad::__construct()
EntityLoad constructor.
@codeCoverageIgnore
Parameters
array $configuration: The plugin configuration array.
string $pluginId: The plugin id.
array $pluginDefinition: The plugin definition array.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.
\Drupal\graphql\GraphQL\Buffers\EntityBuffer $entityBuffer: The entity buffer service.
File
- modules/
social_features/ social_profile/ src/ Plugin/ GraphQL/ DataProducer/ DefaultProfileLoad.php, line 80
Class
- DefaultProfileLoad
- Loads the default profile for a user.
Namespace
Drupal\social_profile\Plugin\GraphQL\DataProducerCode
public function __construct(array $configuration, $pluginId, array $pluginDefinition, EntityTypeManagerInterface $entityTypeManager, EntityBuffer $entityBuffer) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->entityTypeManager = $entityTypeManager;
$this->entityBuffer = $entityBuffer;
}