concrete/src/Validation/CSRF/Token.php
public function output($action = '', $return = false)
    {
        $hash = $this->generate($action);
        $token = '<input type="hidden" name="' . static::DEFAULT_TOKEN_NAME . '" value="' . $hash . '" />';
        if (!$return) {
            echo $token;
        } else {
            return $token;
        }
    }
public function output($action = '', $return = false)
    {
        $hash = $this->generate($action);
        $token = '<input type="hidden" name="' . static::DEFAULT_TOKEN_NAME . '" value="' . $hash . '" />';
        if (!$return) {
            echo $token;
        } else {
            return $token;
        }
    }
public function output ( $ action = '' , $ return = false ) { $ hash = $ this -> generate ( $ action ) ; $ token = '<input type="hidden" name="' . static :: DEFAULT_TOKEN_NAME . '" value="' . $ hash . '" />' ; if ( ! $ return ) { echo $ token ; } else { return $ token ; } }
Create the HTML code of a token.

@param string $action An optional identifier of the token
@param bool $return Set to true to return the generated code, false to print it out

@return string|void
Create the HTML code of a token .