private function AddGuestsOnlyField()
    {
        $field = new Checkbox('GuestsOnly', '1', (bool) $this->Content()->GetGuestsOnly());
        $this->AddField($field, false, Trans('Core.ContentForm.GuestsOnly'));
    }
private function AddGuestsOnlyField()
    {
        $field = new Checkbox('GuestsOnly', '1', (bool) $this->Content()->GetGuestsOnly());
        $this->AddField($field, false, Trans('Core.ContentForm.GuestsOnly'));
    }
private function AddGuestsOnlyField ( ) { $ field = new Checkbox ( 'GuestsOnly' , '1' , ( bool ) $ this -> Content ( ) -> GetGuestsOnly ( ) ) ; $ this -> AddField ( $ field , false , Trans ( 'Core.ContentForm.GuestsOnly' ) ) ; }
Adds the checkbox for "guests only" visibility of a content
Adds the checkbox for guests only visibility of a content