The onion is being chopped and mixed with other ingredients such as garlic, salt, and pepper in a frying pan.