App\Controllers\Sites\BaseController::csrf PHP Method

csrf() protected method

protected csrf ( )
    protected function csrf()
    {
        $this->data['csrf'] = new \stdClass();
        $this->data['csrf']->nameKey = $this->csrf->getTokenNameKey();
        $this->data['csrf']->valueKey = $this->csrf->getTokenValueKey();
        $this->data['csrf']->name = $this->request->getAttribute('csrf_name');
        $this->data['csrf']->value = $this->request->getAttribute('csrf_value');
    }