public function listSites($organization, $options = ['tag' => null])
{
$org = $this->session()->getUser()->getOrgMemberships()->get($organization)->getOrganization();
$this->sites->fetch(['org_id' => $org->id]);
if (!is_null($tag = $options['tag'])) {
$this->sites->filterByTag($tag);
}
$sites = array_map(function ($site) {
return $site->serialize();
}, $this->sites->all());
if (empty($sites)) {
$this->log()->notice('This organization has no sites.');
}
return new RowsOfFields($sites);
}