original_string: protected function _csrfField()
      {
          $request = $this->_View->getRequest();
  
          if ($request->getParam('_Token.unlockedFields')) {
              foreach ((array)$request->getParam('_Token.unlockedFields') as $unlocked) {
                  $this->_unlockedFields[] = $unlocked;
              }
          }
          if (!$request->getParam('_csrfToken')) {
              return '';
          }
  
          return $this->hidden('_csrfToken', [
              'value' => $request->getParam('_csrfToken'),
              'secure' => static::SECURE_SKIP,
              'autocomplete' => 'off',
          ]);
      }
code: protected function _csrfField()
      {
          $request = $this->_View->getRequest();
  
          if ($request->getParam('_Token.unlockedFields')) {
              foreach ((array)$request->getParam('_Token.unlockedFields') as $unlocked) {
                  $this->_unlockedFields[] = $unlocked;
              }
          }
          if (!$request->getParam('_csrfToken')) {
              return '';
          }
  
          return $this->hidden('_csrfToken', [
              'value' => $request->getParam('_csrfToken'),
              'secure' => static::SECURE_SKIP,
              'autocomplete' => 'off',
          ]);
      }
code_tokens: protected function _csrfField ( ) { $ request = $ this -> _View -> getRequest ( ) ; if ( $ request -> getParam ( '_Token.unlockedFields' ) ) { foreach ( ( array ) $ request -> getParam ( '_Token.unlockedFields' ) as $ unlocked ) { $ this -> _unlockedFields [ ] = $ unlocked ; } } if ( ! $ request -> getParam ( '_csrfToken' ) ) { return '' ; } return $ this -> hidden ( '_csrfToken' , [ 'value' => $ request -> getParam ( '_csrfToken' ) , 'secure' => static :: SECURE_SKIP , 'autocomplete' => 'off' , ] ) ; }
docstring: Return a CSRF input if the request data is present.
  Used to secure forms in conjunction with CsrfComponent &
  SecurityComponent
  
  @return string
docstring_tokens: Return a CSRF input if the request data is present . Used to secure forms in conjunction with CsrfComponent & SecurityComponent