Final Class Yiisoft\View\Event\View\BeforeRender
| Inheritance | Yiisoft\View\Event\View\BeforeRender |
|---|---|
| Implements | Psr\EventDispatcher\StoppableEventInterface |
BeforeRender event is triggered by {@see View::render()} right before it renders a view file.
Public Methods
Method Details
| 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
) {
}
| public boolean isPropagationStopped ( ) |
public function isPropagationStopped(): bool
{
return $this->stopPropagation;
}
| public void stopPropagation ( ) |
public function stopPropagation(): void
{
$this->stopPropagation = true;
}
Signup or Login in order to comment.