src/Core/Security/CsrfGuard.php
public function input($userId = null, $attribs = [])
    {
        $attribs['type']  = 'hidden';
        $attribs['name']  = $this->getFormToken($userId);
        $attribs['value'] = 1;

        return h('input', $attribs, null);
    }
public function input($userId = null, $attribs = [])
    {
        $attribs['type']  = 'hidden';
        $attribs['name']  = $this->getFormToken($userId);
        $attribs['value'] = 1;

        return h('input', $attribs, null);
    }
public function input ( $ userId = null , $ attribs = [ ] ) { $ attribs [ 'type' ] = 'hidden' ; $ attribs [ 'name' ] = $ this -> getFormToken ( $ userId ) ; $ attribs [ 'value' ] = 1 ; return h ( 'input' , $ attribs , null ) ; }
Create token input.

@param   mixed $userId
@param   array $attribs

@return  HtmlElement
@throws \Exception
Create token input .