public function Uid::__construct in Drupal 8
Same name and namespace in other branches
- 9 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;
}