'This is the custom label', ]; } public function rules() { return []; } public function scenarios() { return [ 'test' => ['firstName', 'lastName', '!underscore_style'], 'duplicates' => ['firstName', 'firstName', '!underscore_style', '!underscore_style'], ]; } private $_checkedValues = []; public function customValidatingMethod($attribute, $params, $validator, $current) { $this->_checkedValues[] = $current; $this->addError($attribute, 'Custom method error'); } public function getCheckedValues() { return $this->_checkedValues; } }