public function BlockService::getDefaultLayoutId in Opigno dashboard 3.x
The ID of default dashboard layout.
Return value
int The ID of default dashboard layout.
Overrides BlockServiceInterface::getDefaultLayoutId
1 call to BlockService::getDefaultLayoutId()
- BlockService::getPositioning in src/
BlockService.php - Returns positioning.
File
- src/
BlockService.php, line 288
Class
- BlockService
- The dashboard block manager service definition.
Namespace
Drupal\opigno_dashboardCode
public function getDefaultLayoutId() : int {
// Return 3-column layout in case if social features enabled, 2-column
// otherwise.
return $this
->isSocialFeatureEnabled() ? 5 : 3;
}