function Roles::__construct
Same name in this branch
- 11.x core/modules/user/src/Plugin/views/field/Roles.php \Drupal\user\Plugin\views\field\Roles::__construct()
Same name in other branches
- 9 core/modules/user/src/Plugin/views/field/Roles.php \Drupal\user\Plugin\views\field\Roles::__construct()
- 9 core/modules/user/src/Plugin/views/filter/Roles.php \Drupal\user\Plugin\views\filter\Roles::__construct()
- 8.9.x core/modules/user/src/Plugin/views/field/Roles.php \Drupal\user\Plugin\views\field\Roles::__construct()
- 8.9.x core/modules/user/src/Plugin/views/filter/Roles.php \Drupal\user\Plugin\views\filter\Roles::__construct()
- 10 core/modules/user/src/Plugin/views/field/Roles.php \Drupal\user\Plugin\views\field\Roles::__construct()
- 10 core/modules/user/src/Plugin/views/filter/Roles.php \Drupal\user\Plugin\views\filter\Roles::__construct()
Constructs a Roles object.
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\user\RoleStorageInterface $roleStorage: The role storage.
\Psr\Log\LoggerInterface|null $logger: The logger service.
Overrides HandlerBase::__construct
File
-
core/
modules/ user/ src/ Plugin/ views/ filter/ Roles.php, line 34
Class
- Roles
- Filter handler for user roles.
Namespace
Drupal\user\Plugin\views\filterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RoleStorageInterface $roleStorage, LoggerInterface $logger) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.