'Label for attr1', ]; } public function generateAttributeLabel($name) { throw new \yii\base\InvalidArgumentException('Label not defined!'); } }