задиние столбцов для Grid и DetailView

Пример 
class GalleryEntity extends Entity { 
     ....
    public function grid() {
        return [
            'class' => Grid::className(),
            'columns' => [
                'name',
                'date',
            ],
        ];
    }

    public function detail() {
        return array_merge(parent::detail(), [
            'attributes' => [
                'name',
                'date',
            ],
        ]);
    }
}