public static function Asset::getCurrentUserId in farmOS 2.x
File
- modules/
core/ asset/ src/ Entity/ Asset.php, line 160
Class
- Asset
- Defines the asset entity.
Namespace
Drupal\asset\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}