function UserData::__construct
Same name in this branch
- 8.9.x core/modules/user/src/Plugin/migrate/destination/UserData.php \Drupal\user\Plugin\migrate\destination\UserData::__construct()
- 8.9.x core/modules/user/src/UserData.php \Drupal\user\UserData::__construct()
Same name in other branches
- 9 core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::__construct()
- 9 core/modules/user/src/Plugin/migrate/destination/UserData.php \Drupal\user\Plugin\migrate\destination\UserData::__construct()
- 9 core/modules/user/src/UserData.php \Drupal\user\UserData::__construct()
- 10 core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::__construct()
- 10 core/modules/user/src/Plugin/migrate/destination/UserData.php \Drupal\user\Plugin\migrate\destination\UserData::__construct()
- 10 core/modules/user/src/UserData.php \Drupal\user\UserData::__construct()
- 11.x core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::__construct()
- 11.x core/modules/user/src/Plugin/migrate/destination/UserData.php \Drupal\user\Plugin\migrate\destination\UserData::__construct()
- 11.x core/modules/user/src/UserData.php \Drupal\user\UserData::__construct()
Constructs a UserData object.
Overrides HandlerBase::__construct
File
-
core/
modules/ user/ src/ Plugin/ views/ field/ UserData.php, line 47
Class
- UserData
- Provides access to the user data service.
Namespace
Drupal\user\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, UserDataInterface $user_data, ModuleHandlerInterface $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->userData = $user_data;
$this->moduleHandler = $module_handler;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.