Hi, which is the easiest way to get current site and available sites data in php block?
Like in twig you have:
{{ this.site.id }}
{{ this.site.name }}
{{ this.site.code }}
{{ this.site.locale }}
{{ this.site.timezone }}
{{ this.site.theme }}
I’m using the Site Facade, like this:
Site::getSiteFromContext();
Site::listSites():
Isn’t there any $this->....
?
Just wanted to check if that was the easiest and more direct way. In twig it seems pretty straight forward.