public function RegisterFormPopup::__construct in Login Popup 2.x
Constructs a new WelcomeUserNameBlock.
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\Core\Form\FormBuilderInterface $form_builder: The form_builder service.
\Drupal\Core\Session\AccountProxy $currentUser: The current_user service.
\Drupal\Core\Render\Renderer $renderer: The renderer service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ RegisterFormPopup.php, line 72
Class
- RegisterFormPopup
- Provides a 'RegisterFormPopup' block.
Namespace
Drupal\login_popup\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, FormBuilderInterface $form_builder, AccountProxy $currentUser, Renderer $renderer, RequestStack $request_stack) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->formBuilder = $form_builder;
$this->currentUser = $currentUser;
$this->renderer = $renderer;
$this->requestStack = $request_stack;
}