Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/rocksensor3/web/modules/contrib/token/tests/src/Kernel/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/rocksensor3/web/modules/contrib/token/tests/src/Kernel/MockLanguageManager.php

<?php

namespace Drupal\Tests\token\Kernel;

use Drupal\Core\Language\LanguageInterface;
use Drupal\language\ConfigurableLanguageManager;

/**
 * A language manager that can be easily overridden for testing purposes.
 */
class MockLanguageManager extends ConfigurableLanguageManager {

  /**
   * List of current languages used in the test.
   *
   * @var \Drupal\Core\Language\LanguageInterface[]
   */
  protected $currentLanguages;

  /**
   * {@inheritdoc}
   */
  public function getCurrentLanguage($type = LanguageInterface::TYPE_INTERFACE) {
    if (isset($this->currentLanguages[$type])) {
      return $this->currentLanguages[$type];
    }
    return parent::getCurrentLanguage($type);
  }

  /**
   * Sets the current language of the given type to use during tests.
   *
   * @param string $type
   *   The language type.
   * @param \Drupal\Core\Language\LanguageInterface $language
   *   The language.
   */
  public function setCurrentLanguage($type, LanguageInterface $language) {
    $this->currentLanguages[$type] = $language;
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net