original_string: protected function get_protected_field(string $prefix = '') : \stdClass {
          $fieldname = "{$prefix}protected";
  
          return (object) [
              'fields' => [
                  $this->_form->createElement(
                          'advcheckbox',
                          $fieldname,
                          get_string('protected', 'tool_dataprivacy'),
                          get_string('protectedlabel', 'tool_dataprivacy')
                      ),
              ],
          ];
      }
code: protected function get_protected_field(string $prefix = '') : \stdClass {
          $fieldname = "{$prefix}protected";
  
          return (object) [
              'fields' => [
                  $this->_form->createElement(
                          'advcheckbox',
                          $fieldname,
                          get_string('protected', 'tool_dataprivacy'),
                          get_string('protectedlabel', 'tool_dataprivacy')
                      ),
              ],
          ];
      }
code_tokens: protected function get_protected_field ( string $ prefix = '' ) : \ stdClass { $ fieldname = "{$prefix}protected" ; return ( object ) [ 'fields' => [ $ this -> _form -> createElement ( 'advcheckbox' , $ fieldname , get_string ( 'protected' , 'tool_dataprivacy' ) , get_string ( 'protectedlabel' , 'tool_dataprivacy' ) ) , ] , ] ; }
docstring: Get the mform field for the protected flag.
  
  @param   string  $prefix The prefix to apply to the field
  @return  \stdClass
docstring_tokens: Get the mform field for the protected flag .