You are here

public function Update120::__construct in Lightning Workflow 8

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

Update100 constructor.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

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

File

src/Update/Update120.php, line 36

Class

Update120
Plugin annotation @Update("1.2.0");

Namespace

Drupal\lightning_workflow\Update

Code

public function __construct(ModuleHandlerInterface $module_handler, TranslationInterface $translation = NULL) {
  $this->moduleHandler = $module_handler;
  if ($translation) {
    $this
      ->setStringTranslation($translation);
  }
}