Final Class Yiisoft\View\State\ThemeState
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| getTheme() | Gets the theme instance, or null if no theme has been set. |
Yiisoft\ |
| setTheme() | Set the specified view theme. | Yiisoft\ |
Method Details
| public mixed __construct ( ?\ | ||
| $theme | ?\ |
|
public function __construct(
private ?Theme $theme = null,
) {}
Gets the theme instance, or null if no theme has been set.
| public Yiisoft\ | ||
| return | Yiisoft\ |
The theme instance, or |
|---|---|---|
public function getTheme(): ?Theme
{
return $this->theme;
}
Set the specified view theme.
| public self setTheme ( Yiisoft\ | ||
| $theme | Yiisoft\ |
$theme The theme instance or |
public function setTheme(?Theme $theme): self
{
$this->theme = $theme;
return $this;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.