You are here

private function RequestTranslationApproveForm::refreshServices in TMGMT Extension Suite 8

Recreates services.

2 calls to RequestTranslationApproveForm::refreshServices()
RequestTranslationApproveForm::buildForm in src/Form/RequestTranslationApproveForm.php
Form constructor.
RequestTranslationApproveForm::submitForm in src/Form/RequestTranslationApproveForm.php
Form submission handler.

File

src/Form/RequestTranslationApproveForm.php, line 62

Class

RequestTranslationApproveForm

Namespace

Drupal\tmgmt_extension_suit\Form

Code

private function refreshServices() {
  if (empty($this->tempStore)) {
    $this->tempStore = Drupal::service('user.private_tempstore')
      ->get('tmgmt_extension_suit');
  }
  if (empty($this->translatorManager)) {
    $this->translatorManager = Drupal::service('plugin.manager.tmgmt.translator');
  }
}