public function getColumnLabel($column, $table)
    {
        /** @var \yii\db\ActiveRecord $model */
        $model = $this->_currentModel;
        /** @var Module $module */
        $module = $this->module;
        if (isset($model->attributeLabels()[$column])) {
            return $model->attributeLabels()[$column];
        } elseif ($module->tables[$table]['relations'][$column]['label']) {
            return $module->tables[$table]['relations'][$column]['label'];
        } else {
            return $column;
        }
    }
public function getColumnLabel($column, $table)
    {
        /** @var \yii\db\ActiveRecord $model */
        $model = $this->_currentModel;
        /** @var Module $module */
        $module = $this->module;
        if (isset($model->attributeLabels()[$column])) {
            return $model->attributeLabels()[$column];
        } elseif ($module->tables[$table]['relations'][$column]['label']) {
            return $module->tables[$table]['relations'][$column]['label'];
        } else {
            return $column;
        }
    }
public function getColumnLabel ( $ column , $ table ) { /** @var \yii\db\ActiveRecord $model */ $ model = $ this -> _currentModel ; /** @var Module $module */ $ module = $ this -> module ; if ( isset ( $ model -> attributeLabels ( ) [ $ column ] ) ) { return $ model -> attributeLabels ( ) [ $ column ] ; } elseif ( $ module -> tables [ $ table ] [ 'relations' ] [ $ column ] [ 'label' ] ) { return $ module -> tables [ $ table ] [ 'relations' ] [ $ column ] [ 'label' ] ; } else { return $ column ; } }
Gets attribute label from current model

@param string $column
@return string
Gets attribute label from current model