Override Yii2 Rest Action

I want to override actionIndex for example to show only models with active column=1. I avoid to do that in model because I have web interface that shows all data. Here is something close but the answer is incomplete. I just want to mess with model part and nothing else.



I solved it. Just looked at how its done in ActiveController and did use above link to override. Of course I define my own Action class and it works fine