function Uid::__construct
Same name in other branches
- 8.9.x core/modules/user/src/Plugin/views/argument/Uid.php \Drupal\user\Plugin\views\argument\Uid::__construct()
Constructs a \Drupal\user\Plugin\views\argument\Uid 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\EntityStorageInterface $storage: The user storage.
Overrides HandlerBase::__construct
File
-
core/
modules/ user/ src/ Plugin/ views/ argument/ Uid.php, line 37
Class
- Uid
- Argument handler to accept a user id.
Namespace
Drupal\user\Plugin\views\argumentCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $storage) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->storage = $storage;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.