<?php

namespace App\Http\Resources;

use App\Traits\IconForType;

class GlobalContentElementDataView extends GlobalContentElementView
{
    use IconForType;

    public function toArray($request)
    {
        $data =  parent::toArray($request);
        $data['elements'] = $this->getElementList();
        return $data;
    }
}
