カスタムプラグインの中で現在のユーザーを取得する

Craft CMS スニペット:カスタムプラグインの中で現在のユーザーを取得する

Craft CMS Logo
$currentUser = Craft::$app->getUser()->getIdentity();
Published 2021-07-12
Updated 2021-07-12