public function rules()
{
return [
[['option_list', 'modifier'], 'filter', 'filter' => function($value) {
// I can get the value but I don't know to which attribute it belongs (option_list or modifier)
}],
];
}
How do I get an attribute name which is being processed? The only workaround that I found is to make separate filter for each attribute...