You are here

private function PubSubModuleStatusChecker::moduleEnabled in Acquia Content Hub 8.2

Determines if a module is installed and enabled.

Parameters

string $module_id: Id of the module.

Return value

bool Does the module exist?

2 calls to PubSubModuleStatusChecker::moduleEnabled()
PubSubModuleStatusChecker::isPublisher in src/PubSubModuleStatusChecker.php
Determines if publisher module is installed and enabled.
PubSubModuleStatusChecker::isSubscriber in src/PubSubModuleStatusChecker.php
Determines if subscriber module is installed and enabled.

File

src/PubSubModuleStatusChecker.php, line 74

Class

PubSubModuleStatusChecker
Utility class; encapsulates static general-purpose methods.

Namespace

Drupal\acquia_contenthub

Code

private function moduleEnabled(string $module_id) : bool {
  return $this->moduleHandlerService
    ->moduleExists($module_id);
}