src/view/RenderEvent.php
public static function after(string $viewFile, array $params, $result): self
    {
        return (new static(static::AFTER, $viewFile, $params))->setResult($result);
    }
public static function after(string $viewFile, array $params, $result): self
    {
        return (new static(static::AFTER, $viewFile, $params))->setResult($result);
    }
public static function after ( string $ viewFile , array $ params , $ result ) : self { return ( new static ( static :: AFTER , $ viewFile , $ params ) ) -> setResult ( $ result ) ; }
Creates AFTER event with result.

@param string $viewFile the view file being rendered.
@param array  $params   array passed to the [[View::render()]] method.
@param mixed  $result   view rendering result.

@return self created event
Creates AFTER event with result .