0 follower

Final Class Yiisoft\View\Event\View\BeforeRender

InheritanceYiisoft\View\Event\View\BeforeRender
ImplementsPsr\EventDispatcher\StoppableEventInterface

BeforeRender event is triggered by {@see View::render()} right before it renders a view file.

Method Details

Hide inherited methods

__construct() public method

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

The view file being rendered.

$parameters array

The parameters array passed to the {@see \Yiisoft\View\View::render()} method.

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

            
getFile() public method

public string getFile ( )

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

            
getParameters() public method

public array getParameters ( )

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

            
getView() public method

public Yiisoft\View\View getView ( )

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

            
isPropagationStopped() public method

public boolean isPropagationStopped ( )

                public function isPropagationStopped(): bool
{
    return $this->stopPropagation;
}

            
stopPropagation() public method

public void stopPropagation ( )

                public function stopPropagation(): void
{
    $this->stopPropagation = true;
}