You are here

public function PasswordReset::__construct in GraphQL 8.4

UserRegister constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Symfony\Component\HttpFoundation\Request $current_request: The current request.

\Drupal\Core\Logger\LoggerChannelInterface $logger: The logger service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/GraphQL/DataProducer/User/PasswordReset.php, line 78

Class

PasswordReset
Resets the user's password (mutation).

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\User

Code

public function __construct(array $configuration, string $plugin_id, array $plugin_definition, Request $current_request, LoggerChannelInterface $logger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentRequest = $current_request;
  $this->logger = $logger;
}