public function ThunderEntityListProducerBase::__construct in Thunder 6.2.x
EntityLoad constructor.
Parameters
array $configuration: The plugin configuration array.
string $pluginId: The plugin id.
array $pluginDefinition: The plugin definition array.
\Drupal\Core\Entity\EntityTypeManager $entityTypeManager: The entity type manager service.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- modules/
thunder_gqls/ src/ Plugin/ GraphQL/ DataProducer/ ThunderEntityListProducerBase.php, line 62
Class
- ThunderEntityListProducerBase
- The thunder base class for entity list producers.
Namespace
Drupal\thunder_gqls\Plugin\GraphQL\DataProducerCode
public function __construct(array $configuration, string $pluginId, array $pluginDefinition, EntityTypeManager $entityTypeManager, AccountInterface $current_user) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->entityTypeManager = $entityTypeManager;
$this->currentUser = $current_user;
}