Contents

Cms\Components\SitePicker

Overview

SitePicker component

Extends
Implements
  • Larajax\Contracts\ViewComponentInterface
  • October\Contracts\Twig\CallsAnyMethod
  • Stringable

Public Properties

There are no public properties in the class.

Show inherited public properties

Inherited Public Properties

Protected Properties

protected array $sitesCache

sitesCache for multiple calls

protected array $allSitesCache

allSitesCache for multiple calls

Show inherited protected properties

Inherited Protected Properties


Public Methods

public allSites()

public allSites(): void

allSites lazily loads the available sites

public componentDetails()

public componentDetails(): array 

public isEnabled()

public isEnabled(): void

isEnabled returns true if the site picker should be displayed

public pageSites()

public pageSites($pageName, $params = []): void

pageSites returns a CMS page for all available sites

public sites()

public sites(): void

sites lazily loads the available sites

Show inherited public methods

Inherited Public Methods

Protected Methods

protected cloneSites()

protected cloneSites($sites): void

cloneSites so a URL override set here does not leak into the shared site definitions used elsewhere in the request

Show inherited protected methods

Inherited Protected Methods