<?php

namespace App\Http\Resources;

use App\Traits\IconForType;

class GlobalContentElementDataView extends GlobalContentElementView
{
    use IconForType;

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