You are here

public function UserRegisterBlock::__construct in Form Block 2.0.x

Same name and namespace in other branches
  1. 8 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.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entityDisplayRepository: The entity display repository.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

Overrides BlockPluginTrait::__construct

File

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

Class

UserRegisterBlock
Provides a block for the user registration form.

Namespace

Drupal\formblock\Plugin\Block

Code

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