public function UserRegisterBlock::__construct in Form Block 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Block/UserRegisterBlock.php \Drupal\formblock\Plugin\Block\UserRegisterBlock::__construct()
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\formblock\Plugin\BlockCode
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;
}