You are here

public function EmailRegistrationLogin::__construct in Email Registration 8

Constructs a new EmailRegistrationLogin object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\CheckoutFlowInterface $checkout_flow: The parent checkout flow.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\commerce\CredentialsCheckFloodInterface $credentials_check_flood: The credentials check flood controller.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\user\UserAuthInterface $user_auth: The user authentication object.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Config\ImmutableConfig $config: The email registration settings.

Overrides Login::__construct

File

src/Plugin/Commerce/CheckoutPane/EmailRegistrationLogin.php, line 53

Class

EmailRegistrationLogin
Provides the email registration login pane.

Namespace

Drupal\email_registration\Plugin\Commerce\CheckoutPane

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CheckoutFlowInterface $checkout_flow, EntityTypeManagerInterface $entity_type_manager, CredentialsCheckFloodInterface $credentials_check_flood, AccountInterface $current_user, UserAuthInterface $user_auth, RequestStack $request_stack, ImmutableConfig $config) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $checkout_flow, $entity_type_manager, $credentials_check_flood, $current_user, $user_auth, $request_stack);
  $this->config = $config;
}