You are here

public function Update200::__construct in Lightning Media 8.4

Same name and namespace in other branches
  1. 8.2 src/Update/Update200.php \Drupal\lightning_media\Update\Update200::__construct()
  2. 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 35

Class

Update200
Contains optional updates targeting Lightning Media 2.0.0.

Namespace

Drupal\lightning_media\Update

Code

public function __construct(ConfigFactoryInterface $config_factory, TranslationInterface $translation = NULL) {
  $this->configFactory = $config_factory;
  if ($translation) {
    $this
      ->setStringTranslation($translation);
  }
}