improved dark mode, automatic theme switch (#5720)
This commit is contained in:
@@ -28,6 +28,7 @@ final class MenuItemModel implements MenuItemInterface
|
||||
private bool $divider = false;
|
||||
private bool $lastWasDivider = false;
|
||||
private bool $expanded = false;
|
||||
private bool $disabled = false;
|
||||
private string $translationDomain = 'messages';
|
||||
|
||||
public function __construct(
|
||||
@@ -308,4 +309,14 @@ final class MenuItemModel implements MenuItemInterface
|
||||
{
|
||||
$this->translationDomain = $translationDomain;
|
||||
}
|
||||
|
||||
public function setDisabled(bool $disabled): void
|
||||
{
|
||||
$this->disabled = $disabled;
|
||||
}
|
||||
|
||||
public function isDisabled(): bool
|
||||
{
|
||||
return $this->disabled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user