function ChangeUserRoleBase::create
Same name in other branches
- 9 core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php \Drupal\user\Plugin\Action\ChangeUserRoleBase::create()
- 8.9.x core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php \Drupal\user\Plugin\Action\ChangeUserRoleBase::create()
- 10 core/modules/user/src/Plugin/Action/ChangeUserRoleBase.php \Drupal\user\Plugin\Action\ChangeUserRoleBase::create()
Overrides ContainerFactoryPluginInterface::create
File
-
core/
modules/ user/ src/ Plugin/ Action/ ChangeUserRoleBase.php, line 40
Class
- ChangeUserRoleBase
- Provides a base class for operations to change a user's role.
Namespace
Drupal\user\Plugin\ActionCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('entity_type.manager')
->getDefinition('user_role'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.