Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes

This commit is contained in:
Pantheon Automation 2016-04-20 09:56:34 -07:00 committed by Greg Anderson
parent b11a755ba8
commit c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Language\ContextProvider\CurrentLanguageContext.
*/
namespace Drupal\Core\Language\ContextProvider;
use Drupal\Core\Cache\CacheableMetadata;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Language\Language.
*/
namespace Drupal\Core\Language;
use Drupal\Core\StringTranslation\TranslatableMarkup;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Language\LanguageDefault.
*/
namespace Drupal\Core\Language;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Language\LanguageInterface.
*/
namespace Drupal\Core\Language;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Language\LanguageManager.
*/
namespace Drupal\Core\Language;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
@ -333,6 +328,28 @@ class LanguageManager implements LanguageManagerInterface {
);
}
/**
* The 6 official languages used at the United Nations.
*
* This list is based on
* http://www.un.org/en/sections/about-un/official-languages/index.html and it
* uses the same format as getStandardLanguageList().
*
* @return array
* An array with language codes as keys, and English and native language
* names as values.
*/
public static function getUnitedNationsLanguageList() {
return [
'ar' => ['Arabic', /* Left-to-right marker "" */ 'العربية', LanguageInterface::DIRECTION_RTL],
'zh-hans' => ['Chinese, Simplified', '简体中文'],
'en' => ['English', 'English'],
'fr' => ['French', 'Français'],
'ru' => ['Russian', 'Русский'],
'es' => ['Spanish', 'Español'],
];
}
/**
* {@inheritdoc}
*

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Core\Language\LanguageManagerInterface.
*/
namespace Drupal\Core\Language;
use Drupal\Core\Url;