You are here

public function Update350::__construct in Lightning Media 8.4

Same name in this branch
  1. 8.4 modules/lightning_media_audio/src/Update/Update350.php \Drupal\lightning_media_audio\Update\Update350::__construct()
  2. 8.4 modules/lightning_media_video/src/Update/Update350.php \Drupal\lightning_media_video\Update\Update350::__construct()
Same name and namespace in other branches
  1. 8.3 modules/lightning_media_video/src/Update/Update350.php \Drupal\lightning_media_video\Update\Update350::__construct()

Update350 constructor.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $media_type_storage: The media type entity storage handler.

\Drupal\Core\Entity\EntityStorageInterface $field_storage: The field config entity storage handler.

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

File

modules/lightning_media_video/src/Update/Update350.php, line 46

Class

Update350
Contains optional updates targeting Lightning Media Video 3.5.0.

Namespace

Drupal\lightning_media_video\Update

Code

public function __construct(EntityStorageInterface $media_type_storage, EntityStorageInterface $field_storage, TranslationInterface $translation = NULL) {
  $this->mediaTypeStorage = $media_type_storage;
  $this->fieldStorage = $field_storage;
  if ($translation) {
    $this
      ->setStringTranslation($translation);
  }
}