public function getCMSFields()
    {
        $image = HTML::createTag('img', [
            'src' => $this->PreviewLink(),
            'alt' => $this->getTitle(),
            'class' => 'd-block mx-auto',
        ]);

        $fields = FieldList::create(
            HTMLReadonlyField::create('IconFull', _t(__CLASS__.'.PREVIEW', 'Preview'), $image),
            TextField::create("Title", $this->fieldLabel('Title')),
            TextField::create("Name", $this->fieldLabel('Filename')),
            TextField::create("Filename", _t(__CLASS__.'.PATH', 'Path'))
                ->setReadonly(true)
        );
        $this->extend('updateCMSFields', $fields);
        return $fields;
    }
public function getCMSFields()
    {
        $image = HTML::createTag('img', [
            'src' => $this->PreviewLink(),
            'alt' => $this->getTitle(),
            'class' => 'd-block mx-auto',
        ]);

        $fields = FieldList::create(
            HTMLReadonlyField::create('IconFull', _t(__CLASS__.'.PREVIEW', 'Preview'), $image),
            TextField::create("Title", $this->fieldLabel('Title')),
            TextField::create("Name", $this->fieldLabel('Filename')),
            TextField::create("Filename", _t(__CLASS__.'.PATH', 'Path'))
                ->setReadonly(true)
        );
        $this->extend('updateCMSFields', $fields);
        return $fields;
    }
public function getCMSFields ( ) { $ image = HTML :: createTag ( 'img' , [ 'src' => $ this -> PreviewLink ( ) , 'alt' => $ this -> getTitle ( ) , 'class' => 'd-block mx-auto' , ] ) ; $ fields = FieldList :: create ( HTMLReadonlyField :: create ( 'IconFull' , _t ( __CLASS__ . '.PREVIEW' , 'Preview' ) , $ image ) , TextField :: create ( "Title" , $ this -> fieldLabel ( 'Title' ) ) , TextField :: create ( "Name" , $ this -> fieldLabel ( 'Filename' ) ) , TextField :: create ( "Filename" , _t ( __CLASS__ . '.PATH' , 'Path' ) ) -> setReadonly ( true ) ) ; $ this -> extend ( 'updateCMSFields' , $ fields ) ; return $ fields ; }
List of basic content editable file fields.

Note: These fields no longer affect the edit form in asset-admin. To add fields to the file
edit form in asset-admin, you will need to add an extension to FileFormFactory and use the
updateFormFields() hook.

@return FieldList
List of basic content editable file fields .