public function RolesRid::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Plugin/views/argument/RolesRid.php \Drupal\user\Plugin\views\argument\RolesRid::__construct()
Constructs a \Drupal\user\Plugin\views\argument\RolesRid 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\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
Overrides HandlerBase::__construct
File
- core/
modules/ user/ src/ Plugin/ views/ argument/ RolesRid.php, line 42 - Contains \Drupal\user\Plugin\views\argument\RolesRid.
Class
- RolesRid
- Allow role ID(s) as argument.
Namespace
Drupal\user\Plugin\views\argumentCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->roleStorage = $entity_manager
->getStorage('user_role');
}