public function Update120::__construct in Lightning Workflow 8.3
Same name and namespace in other branches
- 8 src/Update/Update120.php \Drupal\lightning_workflow\Update\Update120::__construct()
- 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 38
Class
- Update120
- Contains optional updates targeting Lightning Workflow 1.2.0.
Namespace
Drupal\lightning_workflow\UpdateCode
public function __construct(ModuleHandlerInterface $module_handler, TranslationInterface $translation = NULL) {
$this->moduleHandler = $module_handler;
if ($translation) {
$this
->setStringTranslation($translation);
}
}