Type::attributeLabels PHP Method

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)
    public function attributeLabels()
    {
        return ['id' => Yii::t('StoreModule.store', 'Id'), 'name' => Yii::t('StoreModule.store', 'Name')];
    }