public function DomainStorage::loadDefaultId in Domain Access 8
Returns the id of the default domain.
Return value
int|bool The id of the default domain or FALSE if none is set.
Overrides DomainStorageInterface::loadDefaultId
1 call to DomainStorage::loadDefaultId()
- DomainStorage::create in domain/
src/ DomainStorage.php - Constructs a new entity object, without permanently saving it.
File
- domain/
src/ DomainStorage.php, line 74
Class
- DomainStorage
- Loads Domain records.
Namespace
Drupal\domainCode
public function loadDefaultId() {
$result = $this
->loadDefaultDomain();
if (!empty($result)) {
return $result
->id();
}
return NULL;
}