You are here

public function Update230::__construct in Lightning Workflow 8.2

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

Update230 constructor.

Parameters

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

EntityStorageInterface $workflow_storage: The workflow entity storage handler.

TranslationInterface $translation: (optional) The string translation service.

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

File

src/Update/Update230.php, line 54

Class

Update230
Plugin annotation @Update("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;
}