code/libraries/joomlatools/library/template/filter/form.php
protected function _addMetatag(&$text)
    {
        if (!empty($this->_token_value))
        {
            $string = '<meta content="'.$this->_token_value.'" name="csrf-token" />';
            if (stripos($text, $string) === false) {
                $text = $string.$text;
            }
        }

        return $this;
    }
protected function _addMetatag(&$text)
    {
        if (!empty($this->_token_value))
        {
            $string = '<meta content="'.$this->_token_value.'" name="csrf-token" />';
            if (stripos($text, $string) === false) {
                $text = $string.$text;
            }
        }

        return $this;
    }
protected function _addMetatag ( & $ text ) { if ( ! empty ( $ this -> _token_value ) ) { $ string = '<meta content="' . $ this -> _token_value . '" name="csrf-token" />' ; if ( stripos ( $ text , $ string ) === false ) { $ text = $ string . $ text ; } } return $ this ; }
Adds the CSRF token to a meta tag to be used in JavaScript

@param string $text Template text
@return $this
Adds the CSRF token to a meta tag to be used in JavaScript