You are here

public function Update230::__construct in Lightning Workflow 8.3

Same name and namespace in other branches
  1. 8.2 src/Update/Update230.php \Drupal\lightning_workflow\Update\Update230::__construct()

Update230 constructor.

Parameters

\Drupal\Core\Extension\ModuleInstallerInterface $module_installer: The module installer service.

\Drupal\Core\Entity\EntityStorageInterface $workflow_storage: The workflow entity storage handler.

\Drupal\Core\StringTranslation\TranslationInterface $translation: (optional) The string translation service.

\Drupal\lightning_roles\ContentRoleManager $content_role_manager: (optional) The content role manager service.

File

src/Update/Update230.php, line 56

Class

Update230
Contains optional updates targeting Lightning Workflow 2.3.0.

Namespace

Drupal\lightning_workflow\Update

Code

public function __construct(ModuleInstallerInterface $module_installer, EntityStorageInterface $workflow_storage, TranslationInterface $translation = NULL, ContentRoleManager $content_role_manager = NULL) {
  $this->moduleInstaller = $module_installer;
  $this->workflowStorage = $workflow_storage;
  if ($translation) {
    $this
      ->setStringTranslation($translation);
  }
  $this->contentRoleManager = $content_role_manager;
}