public function Update200::__construct in Lightning Media 8.2
Same name and namespace in other branches
- 8.4 src/Update/Update200.php \Drupal\lightning_media\Update\Update200::__construct()
- 8.3 src/Update/Update200.php \Drupal\lightning_media\Update\Update200::__construct()
Update200 constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Core\StringTranslation\TranslationInterface $translation: (optional) The string translation service.
File
- src/
Update/ Update200.php, line 33
Class
- Update200
- Plugin annotation @Update("2.0.0");
Namespace
Drupal\lightning_media\UpdateCode
public function __construct(ConfigFactoryInterface $config_factory, TranslationInterface $translation = NULL) {
$this->configFactory = $config_factory;
if ($translation) {
$this
->setStringTranslation($translation);
}
}