protected getCurrentSite ( ) : null | object | ||
리턴 | null | object |
protected function getCurrentSite()
{
if (!isset($this->data['site']) || $this->data['site'] === null) {
return null;
}
return $this->siteRepository->findByIdentifier($this->data['site']);
}