Final Class Yiisoft\View\Event\WebView\BeforeRender
| Inheritance | Yiisoft\View\Event\WebView\BeforeRender |
|---|---|
| Implements | Psr\EventDispatcher\StoppableEventInterface |
BeforeRender event is triggered by Yiisoft\View\WebView::render() right before it renders a view file.
Public Methods
Method Details
| public __construct( Yiisoft\View\WebView $view, string $file, array $parameters ): mixed | ||
| $view | Yiisoft\View\WebView | |
| $file | string |
The view file being rendered. |
| $parameters | array |
The parameters array passed to the Yiisoft\View\WebView::render() method. |
public function __construct(
private readonly WebView $view,
private readonly string $file,
private readonly array $parameters,
) {}
| public isPropagationStopped( ): boolean |
public function isPropagationStopped(): bool
{
return $this->stopPropagation;
}
| public stopPropagation( ): void |
public function stopPropagation(): void
{
$this->stopPropagation = true;
}
Signup or Login in order to comment.