/** * Returns the array of possible user status values. * * @return array */ public function getPassengerCarsMarksList() { $transport_operations = ArrayHelper::map(CarMake::find()->all(), 'id_car_make', 'name'); $items = []; foreach ($transport_operations as $key => $value) { $items[$key] = Yii::t('transport', $value); } return $items; }