src/Admin/MultisitesModelAdminExtension.php
public function getActiveSite() {
		if($this->owner->config()->use_active_site_session) {
			return Multisites::inst()->getActiveSite();
		} else {
			if($this->modelIsMultiSitesAware()) {
				if($active = $this->owner->getRequest()->getSession()->get($this->getActiveSiteSessionKey())) {
					return Site::get()->byID($active);
				}
			}
		}
	}
public function getActiveSite() {
		if($this->owner->config()->use_active_site_session) {
			return Multisites::inst()->getActiveSite();
		} else {
			if($this->modelIsMultiSitesAware()) {
				if($active = $this->owner->getRequest()->getSession()->get($this->getActiveSiteSessionKey())) {
					return Site::get()->byID($active);
				}
			}
		}
	}
public function getActiveSite ( ) { if ( $ this -> owner -> config ( ) -> use_active_site_session ) { return Multisites :: inst ( ) -> getActiveSite ( ) ; } else { if ( $ this -> modelIsMultiSitesAware ( ) ) { if ( $ active = $ this -> owner -> getRequest ( ) -> getSession ( ) -> get ( $ this -> getActiveSiteSessionKey ( ) ) ) { return Site :: get ( ) -> byID ( $ active ) ; } } } }
get the active site for this model admin

@return Site
get the active site for this model admin