You are here

public function AchVersionAttribute::__construct in Acquia Content Hub 8.2

AchVersionAttribute constructor.

Parameters

\Drupal\acquia_contenthub\Client\ProjectVersionClient $pv_client: Project version client.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module Handler Service.

File

src/EventSubscriber/CdfAttributes/AchVersionAttribute.php, line 40

Class

AchVersionAttribute
Adds ACH module version attribute to client CDF.

Namespace

Drupal\acquia_contenthub\EventSubscriber\CdfAttributes

Code

public function __construct(ProjectVersionClient $pv_client, ModuleHandlerInterface $module_handler) {
  $this->pvClient = $pv_client;
  $this->moduleHandler = $module_handler;
}