original_string: public function unlockField($name = null)
      {
          if ($name === null) {
              return $this->_unlockedFields;
          }
          if (!in_array($name, $this->_unlockedFields)) {
              $this->_unlockedFields[] = $name;
          }
          $index = array_search($name, $this->fields);
          if ($index !== false) {
              unset($this->fields[$index]);
          }
          unset($this->fields[$name]);
      }
code: public function unlockField($name = null)
      {
          if ($name === null) {
              return $this->_unlockedFields;
          }
          if (!in_array($name, $this->_unlockedFields)) {
              $this->_unlockedFields[] = $name;
          }
          $index = array_search($name, $this->fields);
          if ($index !== false) {
              unset($this->fields[$index]);
          }
          unset($this->fields[$name]);
      }
code_tokens: public function unlockField ( $ name = null ) { if ( $ name === null ) { return $ this -> _unlockedFields ; } if ( ! in_array ( $ name , $ this -> _unlockedFields ) ) { $ this -> _unlockedFields [ ] = $ name ; } $ index = array_search ( $ name , $ this -> fields ) ; if ( $ index !== false ) { unset ( $ this -> fields [ $ index ] ) ; } unset ( $ this -> fields [ $ name ] ) ; }
docstring: Add to or get the list of fields that are currently unlocked.
  Unlocked fields are not included in the field hash used by SecurityComponent
  unlocking a field once its been added to the list of secured fields will remove
  it from the list of fields.
  
  @param string|null $name The dot separated name for the field.
  @return array|null Either null, or the list of fields.
  @link https://book.cakephp.org/3.0/en/views/helpers/form.html#working-with-securitycomponent
docstring_tokens: Add to or get the list of fields that are currently unlocked . Unlocked fields are not included in the field hash used by SecurityComponent unlocking a field once its been added to the list of secured fields will remove it from the list of fields .