public function BakeryService::isMain in Bakery Single Sign-On System 8.2
Check if the current site is the main site.
Return value
bool
1 call to BakeryService::isMain()
- BakeryService::isChild in src/
BakeryService.php - Check if the current site is a child site.
File
- src/
BakeryService.php, line 49 - Services used in bakery SSO functions.
Class
- BakeryService
- Common functionalities used in both controller and module.
Namespace
Drupal\bakeryCode
public function isMain() {
if (!isset($this->isMain)) {
$this->isMain = $this->config
->get('bakery_is_master');
}
return $this->isMain;
}