src/Form/Type/Media.php
public function render()
    {
        $media = $this->getRepository()->getMedia(
            $name = $this->getFormName()
        )->map(function ($item) {
            return array_merge($item->toArray(), [
                'url' => $item->getUrl(),
                'conversions' => $this->conversions($item),
            ]);
        });

        return view('administrator::edit.controls.media', [
            'name' => $name,
            'media' => $media->toJson(),
            'arrows' => $this->arrows,
            'indicators' => $this->indicators,
            'width' => $this->width,
            'conversion' => $this->conversion,
            'editable' => $this->editable,
        ]);
    }
public function render()
    {
        $media = $this->getRepository()->getMedia(
            $name = $this->getFormName()
        )->map(function ($item) {
            return array_merge($item->toArray(), [
                'url' => $item->getUrl(),
                'conversions' => $this->conversions($item),
            ]);
        });

        return view('administrator::edit.controls.media', [
            'name' => $name,
            'media' => $media->toJson(),
            'arrows' => $this->arrows,
            'indicators' => $this->indicators,
            'width' => $this->width,
            'conversion' => $this->conversion,
            'editable' => $this->editable,
        ]);
    }
public function render ( ) { $ media = $ this -> getRepository ( ) -> getMedia ( $ name = $ this -> getFormName ( ) ) -> map ( function ( $ item ) { return array_merge ( $ item -> toArray ( ) , [ 'url' => $ item -> getUrl ( ) , 'conversions' => $ this -> conversions ( $ item ) , ] ) ; } ) ; return view ( 'administrator::edit.controls.media' , [ 'name' => $ name , 'media' => $ media -> toJson ( ) , 'arrows' => $ this -> arrows , 'indicators' => $ this -> indicators , 'width' => $ this -> width , 'conversion' => $ this -> conversion , 'editable' => $ this -> editable , ] ) ; }
Each subclass should have this method realized.

@return mixed
Each subclass should have this method realized .