0 follower

Final Class Yiisoft\View\Event\View\AfterRender

InheritanceYiisoft\View\Event\View\AfterRender
ImplementsYiisoft\View\Event\AfterRenderEventInterface

AfterRender event is triggered by Yiisoft\View\View::render() right after it renders a view file.

Method Details

Hide inherited methods

__construct() public method

public __construct( Yiisoft\View\View $view, string $file, array $parameters, string $result ): mixed
$view Yiisoft\View\View
$file string

The view file being rendered.

$parameters array

The parameters array passed to the Yiisoft\View\View::render() method.

$result string

                public function __construct(
    private readonly View $view,
    private readonly string $file,
    private readonly array $parameters,
    private readonly string $result,
) {}

            
getFile() public method

public getFile( ): string

                public function getFile(): string
{
    return $this->file;
}

            
getParameters() public method

public getParameters( ): array

                public function getParameters(): array
{
    return $this->parameters;
}

            
getResult() public method

public getResult( ): string

                public function getResult(): string
{
    return $this->result;
}

            
getView() public method

public getView( ): Yiisoft\View\View

                public function getView(): View
{
    return $this->view;
}