Воткнул костыль
Код: Выделить всё
public static $labels;
public function attributeLabels()
{
return static::$labels;
}
Код: Выделить всё
public function init()
{
Post::$labels = [
'id' => 'ID',
'title' => 'Название',
'description' => 'Описание',
'photo' => 'Фото',
'status' => 'Статус',
];
parent::init();
}