LanguageManager.php 698 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
<?php

/**
 * @file
 * Definition of Drupal\Core\Language\LanguageManager.
 */

namespace Drupal\Core\Language;

use Symfony\Component\HttpFoundation\Request;

/**
 * Ajl
 */
class LanguageManager {

  private $container;

  public function __construct(Request $request) {
    $this->request = $request;
  }

  public function interfaceLanguage() {
    $language = language_types_initialize(LANGUAGE_TYPE_INTERFACE);
    return $language;
  }

  public function contentLanguage() {
    $language = language_types_initialize(LANGUAGE_TYPE_CONTENT);
    return $language;
  }

  public function urlLanguage() {
    $language = language_types_initialize(LANGUAGE_TYPE_URL);
    return $language;
  }
}