public function loadWebmasterSites(AccountInterface $account)
    {
        $roles = $this->getAccess()->getUserRoles($account);

        foreach ($roles as $grant) {
            if ($grant->getRole() !== Access::ROLE_WEBMASTER) {
                unset($roles[$grant->getSiteId()]);
            }
        }

        return $this->getStorage()->loadAll(array_keys($roles));
    }
public function loadWebmasterSites(AccountInterface $account)
    {
        $roles = $this->getAccess()->getUserRoles($account);

        foreach ($roles as $grant) {
            if ($grant->getRole() !== Access::ROLE_WEBMASTER) {
                unset($roles[$grant->getSiteId()]);
            }
        }

        return $this->getStorage()->loadAll(array_keys($roles));
    }
public function loadWebmasterSites ( AccountInterface $ account ) { $ roles = $ this -> getAccess ( ) -> getUserRoles ( $ account ) ; foreach ( $ roles as $ grant ) { if ( $ grant -> getRole ( ) !== Access :: ROLE_WEBMASTER ) { unset ( $ roles [ $ grant -> getSiteId ( ) ] ) ; } } return $ this -> getStorage ( ) -> loadAll ( array_keys ( $ roles ) ) ; }
Load sites for which the user is webmaster

@param AccountInterface $account

@return Site[]
Load sites for which the user is webmaster