src/behaviors/LogBehavior.php
protected function getUserId()
    {
        if (Yii::$app->has('adminuser') && Yii::$app->adminuser->getIdentity()) {
            return Yii::$app->adminuser->id;
        }

        return 0;
    }
protected function getUserId()
    {
        if (Yii::$app->has('adminuser') && Yii::$app->adminuser->getIdentity()) {
            return Yii::$app->adminuser->id;
        }

        return 0;
    }
protected function getUserId ( ) { if ( Yii :: $ app -> has ( 'adminuser' ) && Yii :: $ app -> adminuser -> getIdentity ( ) ) { return Yii :: $ app -> adminuser -> id ; } return 0 ; }
Returns the user id for the current admin user if logged in and component is existsi.

@return integer
@since 1.2.3
Returns the user id for the current admin user if logged in and component is existsi .