public function updateCMSFields(FieldList $fields)
    {
        // only apply the update to files (not folders)
        if ($this->owner->class != 'Folder') {
            // add the tabs from the translatable tab set to the fields
            /** @var TabSet $set */
            $set = $this->owner->getTranslatableTabSet();

            // Remove the tab of the default locale (these are in the "main" tab)
            $set->removeByName(Translatable::default_locale());

            foreach ($set->FieldList() as $tab) {
                $fields->addFieldToTab('Root', $tab);
            }
        }
    }
public function updateCMSFields(FieldList $fields)
    {
        // only apply the update to files (not folders)
        if ($this->owner->class != 'Folder') {
            // add the tabs from the translatable tab set to the fields
            /** @var TabSet $set */
            $set = $this->owner->getTranslatableTabSet();

            // Remove the tab of the default locale (these are in the "main" tab)
            $set->removeByName(Translatable::default_locale());

            foreach ($set->FieldList() as $tab) {
                $fields->addFieldToTab('Root', $tab);
            }
        }
    }
public function updateCMSFields ( FieldList $ fields ) { // only apply the update to files (not folders) if ( $ this -> owner -> class != 'Folder' ) { // add the tabs from the translatable tab set to the fields /** @var TabSet $set */ $ set = $ this -> owner -> getTranslatableTabSet ( ) ; // Remove the tab of the default locale (these are in the "main" tab) $ set -> removeByName ( Translatable :: default_locale ( ) ) ; foreach ( $ set -> FieldList ( ) as $ tab ) { $ fields -> addFieldToTab ( 'Root' , $ tab ) ; } } }
Update the field values for the files & images section
@see DataExtension::updateCMSFields()
@inheritdoc
Update the field values for the files & images section