Add the checkbox and if enabled the date since enforcement

@param FieldList $fields
541887
public function updateCMSFields(FieldList $fields)
    {
        $fields->addFieldToTab(
            'Root.MFA',
            $checkbox = CheckboxField::create(
                'EnforceMFA',
                _t(self::class . '.ENFORCEMFA', 'Enforce MFA on all users'),
                $this->isMFAEnforced()
            )
        );
        $checkbox->setDescription(null);

        $this->updateCheckboxDescription($fields);
    }
395903
public function updateCMSFields(FieldList $fields)
    {
        $fieldEditor = $this->getFieldEditorGrid();

        $fields->insertAfter(new Tab('FormFields', _t(__CLASS__.'.FORMFIELDS', 'Form Fields')), 'Main');
        $fields->addFieldToTab('Root.FormFields', $fieldEditor);

        return $fields;
    }
157331
public function setFields($fields)
    {
        foreach ($fields as $name => $value) {
            $this->parameters->addPost($name, $value);
        }
    }
542419
public function addDataFields($fields)
    {
        if ($this->customDataFields) {
            $this->customDataFields = array_merge($this->customDataFields, $fields);
        } else {
            $this->customDataFields = $fields;
        }
    }
1221746
public function updateCMSFields(FieldList $fields)
    {
        $owner = $this->owner;
        $tab = $owner->config()->get('embed_tab');
        $tab = isset($tab) ? $tab : 'Main';

        // Ensure these fields don't get added by fields scaffold
        $fields->removeByName([
            'EmbedTitle',
            'EmbedType',
            'EmbedSourceURL',
            'EmbedSourceImageURL',
            'EmbedHTML',
            'EmbedWidth',
            'EmbedHeight',
            'EmbedAspectRatio',
            'EmbedDescription',
            'EmbedImage'
        ]);

        $fields->addFieldsToTab(
            'Root.' . $tab,
            array(
                TextField::create(
                    'EmbedTitle',
                    _t(__CLASS__ . '.TITLELABEL', 'Title')
                )
                ->setDescription(
                    _t(__CLASS__ . '.TITLEDESCRIPTION', 'Optional. Will be auto-generated if left blank')
                ),
                TextField::create(
                    'EmbedSourceURL',
                    _t(__CLASS__ . '.SOURCEURLLABEL', 'Source URL')
                )
                ->setDescription(
                    _t(__CLASS__ . '.SOURCEURLDESCRIPTION', 'Specify a external URL')
                ),
                UploadField::create(
                    'EmbedImage',
                    _t(__CLASS__ . '.IMAGELABEL', 'Image')
                )
                ->setFolderName($owner->EmbedFolder)
                ->setAllowedExtensions(['jpg','png','gif']),
                TextareaField::create(
                    'EmbedDescription',
                    _t(__CLASS__ . '.DESCRIPTIONLABEL', 'Description')
                )
            )
        );

        if (isset($owner->AllowedEmbedTypes) && Count($owner->AllowedEmbedTypes) > 1) {
            $fields->addFieldToTab(
                'Root.' . $tab,
                ReadonlyField::create(
                    'EmbedType',
                    _t(__CLASS__ . '.TYPELABEL', 'Type')
                ),
                'EmbedImage'
            );
        }

        return $fields;
    }
272749
public function addField(&$field)
    {
        if (!isset($this->_fields[$field->name()])) {
            $this->_fields[$field->name()] =& $field;
        }
    }
1056399
public function updateCMSFields(FieldList $fields)
    {
        $owner = $this->owner;
        $fields->addFieldToTab(
            "Root.Main",
            HiddenField::create(
                'SubsiteID',
                'SubsiteID',
                Subsite::currentSubsiteID()
            )
        );
        return $fields;
    }
854015
public function updateCMSFields(FieldList $fields)
    {
        // Create Style Tab:
        
        $fields->findOrMakeTab('Root.Style', $this->owner->fieldLabel('Style'));
        
        // Define Placeholder:
        
        $placeholder = _t(__CLASS__ . '.DROPDOWNDEFAULT', '(default)');
        
        // Create Style Fields:
        
        $fields->addFieldToTab(
            'Root.Style',
            FieldSection::create(
                'ImageDefaultsStyle',
                $this->owner->fieldLabel('ImageDefaults'),
                [
                    DropdownField::create(
                        'ImageDefaultAlignment',
                        $this->owner->fieldLabel('ImageDefaultAlignment'),
                        ImageTools::singleton()->getAlignmentOptions()
                    )->setEmptyString(' ')->setAttribute('data-placeholder', $placeholder),
                    DimensionsField::create(
                        'ImageDefaultResize',
                        $this->owner->fieldLabel('ImageDefaultResize')
                    ),
                    DropdownField::create(
                        'ImageDefaultResizeMethod',
                        $this->owner->fieldLabel('ImageDefaultResizeMethod'),
                        ImageTools::singleton()->getResizeMethods()
                    )->setEmptyString(' ')->setAttribute('data-placeholder', $placeholder),
                    DropdownField::create(
                        'ImageDefaultLinked',
                        $this->owner->fieldLabel('ImageDefaultLinked'),
                        $this->getToggleOptions()
                    )->setEmptyString(' ')->setAttribute('data-placeholder', $placeholder)
                ]
            )
        );
    }
293773
public function addFetchFields($field) {
    if (!is_array($field)) {
      if (!in_array($field, $this->fetches)) {
        $this->fetches[] = $field;
      }
    } else {
      $this->fetches = $field;
    }
  }
952614
public function updateCMSFields(FieldList $fields)
    {
        if (Config::inst()->get(SeoObjectExtension::class, 'use_webmaster_tag')) {
            $fields->addFieldToTab(
                "Root.SEO",
                TextareaField::create(
                    "GoogleWebmasterMetaTag",
                    _t('SEO.SEOGoogleWebmasterMetaTag', 'Google webmaster meta tag')
                )->setRightTitle(_t(
                    'SEO.SEOGoogleWebmasterMetaTagRightTitle',
                    "Full Google webmaster meta tag For example &lt;meta name=\"google-site-verification\" content=\"hjhjhJHG12736JHGdfsdf\" /&gt;"
                ))
            );
        }
    }
226032
public function updateCMSFields(FieldList $fields)
    {
        $tags = $this->getAllTagsMap();
        $tagField = ListboxField::create('Tags', _t('DMSDocumentTaxonomyExtension.TAGS', 'Tags'))
            ->setMultiple(true)
            ->setSource($tags);

        if (empty($tags)) {
            $tagField->setAttribute('data-placeholder', _t('DMSDocumentTaxonomyExtension.NOTAGS', 'No tags found'));
        }

        $fields->insertAfter('Description', $tagField);
    }
1353090
private function AddCheckedValueField()
    {
        $name = 'CheckedValue';
        $value = $this->checkbox->GetCheckedValue();  
        $field = Fields\Input::Text($name, $value ? $value : '1');
        $this->AddField($field);
        $this->SetRequired($name);
    }
1138181
public function updateCMSFields(FieldList $fields)
    {
        // Update Field Objects (from parent):
        
        parent::updateCMSFields($fields);
        
        // Define Placeholder:
        
        $placeholder = _t(__CLASS__ . '.DROPDOWNDEFAULT', '(default)');
        
        // Create Style Fields:
        
        $fields->addFieldsToTab(
            'Root.Style',
            [
                FieldSection::create(
                    'CornerStyle',
                    $this->owner->fieldLabel('Corners'),
                    [
                        DropdownField::create(
                            'CornerStyle',
                            $this->owner->fieldLabel('CornerStyle'),
                            $this->owner->getCornerStyleOptions()
                        )->setEmptyString(' ')->setAttribute('data-placeholder', $placeholder)
                    ]
                )
            ]
        );
    }
1097631
public function updateCMSFields(FieldList $fields)
    {
        // Update Field Objects (from parent):
        
        parent::updateCMSFields($fields);
        
        // Create Icons Tab:
        
        $fields->findOrMakeTab('Root.SilverWare.Icons', $this->owner->fieldLabel('Icons'));
        
        // Create Icon Upload Fields:
        
        $fields->addFieldsToTab(
            'Root.SilverWare.Icons',
            [
                $small = UploadField::create(
                    'AppIconSmall',
                    $this->owner->fieldLabel('AppIconSmall')
                )->setAllowedFileCategories('image')->setFolderName($this->getAssetFolder()),
                $large = UploadField::create(
                    'AppIconLarge',
                    $this->owner->fieldLabel('AppIconLarge')
                )->setAllowedFileCategories('image')->setFolderName($this->getAssetFolder()),
                $touch = UploadField::create(
                    'AppIconTouch',
                    $this->owner->fieldLabel('AppIconTouch')
                )->setAllowedFileCategories('image')->setFolderName($this->getAssetFolder())
            ]
        );
        
        // Define Icon Upload Fields:
        
        $small->setRightTitle(
            _t(
                __CLASS__ . '.APPICONSMALLRIGHTTITLE',
                'Used for the bookmark icon (16 x 16 pixels recommended).'
            )
        );
        
        $large->setRightTitle(
            _t(
                __CLASS__ . '.APPICONLARGERIGHTTITLE',
                'Used for social media sharing (at least 500 x 500 pixels recommended).'
            )
        );
        
        $touch->getValidator()->setAllowedExtensions(['png']);
        $touch->setRightTitle(
            _t(
                __CLASS__ . '.APPICONTOUCHRIGHTTITLE',
                'Used for touch icons (at least 500 x 500 pixels recommended, PNG format required).'
            )
        );
    }
786561
private function AddCheckedField()
    {
        $field = new Fields\Checkbox('Checked', '1', $this->checkbox->GetChecked());
        $this->AddField($field);
    }
1338608
public function addField(Field ...$fields)
    {
        collect($fields)->map(function ($field) {
            $this->group['fields']->put($field->key(), $field->get());
        });

        return $this;
    }
713325
public function updateCMSFields(FieldList $fields)
    {
        $owner = $this->owner;
        $fields->removeByName(array('News', 'NewsID', 'SortOrder'));
        $fields->addFieldsToTab(
            'Root.Main', array(
                TextField::create('Title', $owner->fieldLabel('Title')),
                HtmlEditorField::create('Description', $owner->fieldLabel('Description')),
                UploadField::create('Image', $owner->fieldLabel('Image')),
            )
        );
    }