yii\web\IdentityInterface::findIdentity PHP Method

findIdentity() public static method

Finds an identity by the given ID.
public static findIdentity ( string | integer $id ) : yii\web\IdentityInterface
$id string | integer the ID to be looked for
return yii\web\IdentityInterface the identity object that matches the given ID. Null should be returned if such an identity cannot be found or the identity is not in an active state (disabled, deleted, etc.)
    public static function findIdentity($id);