diff --git a/src/LanguageSwitch.php b/src/LanguageSwitch.php index 481d68d..36aed8d 100755 --- a/src/LanguageSwitch.php +++ b/src/LanguageSwitch.php @@ -20,8 +20,6 @@ class LanguageSwitch protected array | Closure | null $displayOn = null; - protected string | Closure $displayOnRenderHook = 'panels::body.end'; - protected array | Closure $excludes = []; protected array | Closure $flags = []; @@ -60,7 +58,7 @@ public static function boot(): void if ($static->isDisplayOn()) { FilamentView::registerRenderHook( - name: $static->getDisplayOnRenderHook(), + name: 'panels::body.end', hook: fn (): string => Blade::render('@livewire(\'filament-language-switch\')') ); } @@ -92,13 +90,6 @@ public function displayOn(array | Closure $routes = null): static return $this; } - public function displayOnRenderHook(string | Closure $hook): static - { - $this->displayOnRenderHook = $hook; - - return $this; - } - public function excludes(array | Closure $excludes): static { $this->excludes = $excludes; @@ -153,11 +144,6 @@ public function getDisplayLocale(): string return (string) $this->evaluate($this->displayLocale); } - public function getDisplayOnRenderHook(): string - { - return (string) $this->evaluate($this->displayOnRenderHook); - } - public function getExcludes(): array { return (array) $this->evaluate($this->excludes);