public function UserLoginBlock::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/Plugin/Block/UserLoginBlock.php \Drupal\user\Plugin\Block\UserLoginBlock::__construct()
- 9 core/modules/user/src/Plugin/Block/UserLoginBlock.php \Drupal\user\Plugin\Block\UserLoginBlock::__construct()
Constructs a new UserLoginBlock instance.
Parameters
array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
File
- core/
modules/ user/ src/ Plugin/ Block/ UserLoginBlock.php, line 52
Class
- UserLoginBlock
- Provides a 'User login' block.
Namespace
Drupal\user\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->routeMatch = $route_match;
}