You are here

public function BlockService::isSocialFeatureEnabled in Opigno dashboard 3.x

Check if social features enabled on site or not.

Return value

bool Whether social features enabled on site or not.

Overrides BlockServiceInterface::isSocialFeatureEnabled

2 calls to BlockService::isSocialFeatureEnabled()
BlockService::getDefaultDashboardConfig in src/BlockService.php
Get the default dashboard configuration.
BlockService::getDefaultLayoutId in src/BlockService.php
The ID of default dashboard layout.

File

src/BlockService.php, line 269

Class

BlockService
The dashboard block manager service definition.

Namespace

Drupal\opigno_dashboard

Code

public function isSocialFeatureEnabled() : bool {
  $socials_enabled = $this->configFactory
    ->get('opigno_class.socialsettings')
    ->get('enable_social_features') ?? FALSE;
  return $this->moduleHandler
    ->moduleExists('opigno_social') && $socials_enabled;
}