You are here

public function UserRegisterBlock::__construct in Glazed Theme Helper 8

Constructs a new UserRegisterBlock plugin.

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\Entity\EntityTypeManagerInterface $entityTypeManager: The entity manager.

\Drupal\Core\Entity\EntityFormBuilderInterface $entityFormBuilder: The entity form builder.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/UserRegisterBlock.php, line 55

Class

UserRegisterBlock
Provides a block for the user registration form.

Namespace

Drupal\glazed_helper\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, EntityFormBuilderInterface $entityFormBuilder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
  $this->entityFormBuilder = $entityFormBuilder;
}