Describe the Before hook API for 2.0 with a feature