public function UserLoginBlock::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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.
Overrides BlockBase::__construct
File
- core/
modules/ user/ src/ Plugin/ Block/ UserLoginBlock.php, line 56 - Contains \Drupal\user\Plugin\Block\UserLoginBlock.
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;
}