Variable importance random forest - vi()

How does the vi() from the vip package random forest exactly works? Is the default variable importance based on the decrease in accuracy? Thanks for any help in advance