function UserLoginBlock::create
Same name in other branches
- 8.9.x core/modules/user/src/Plugin/Block/UserLoginBlock.php \Drupal\user\Plugin\Block\UserLoginBlock::create()
- 10 core/modules/user/src/Plugin/Block/UserLoginBlock.php \Drupal\user\Plugin\Block\UserLoginBlock::create()
- 11.x core/modules/user/src/Plugin/Block/UserLoginBlock.php \Drupal\user\Plugin\Block\UserLoginBlock::create()
Overrides ContainerFactoryPluginInterface::create
File
-
core/
modules/ user/ src/ Plugin/ Block/ UserLoginBlock.php, line 61
Class
- UserLoginBlock
- Provides a 'User login' block.
Namespace
Drupal\user\Plugin\BlockCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('current_route_match'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.