Final Class Yiisoft\View\Event\WebView\BeforeRender
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Psr\ |
BeforeRender event is triggered by {@see WebView::render()} right before it renders a view file.
Public Methods
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $view | Yiisoft\ |
|
| $file | string |
The view file being rendered. |
| $parameters | array |
The parameters array passed to the {@see \ |
public function __construct(
private readonly WebView $view,
private readonly string $file,
private readonly array $parameters,
) {}
| public boolean isPropagationStopped ( ) |
public function isPropagationStopped(): bool
{
return $this->stopPropagation;
}
| public void stopPropagation ( ) |
public function stopPropagation(): void
{
$this->stopPropagation = true;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.