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

@ -29,7 +29,7 @@ function language_help($route_name, RouteMatchInterface $route_match) {
case 'help.page.language':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Language module allows you to configure the languages used on your site, and provides information for the for <a href=":content">Content Translation</a>, <a href=":interface">Interface Translation</a>, and <a href=":configuration">Configuration Translation</a> modules, if they are enabled. For more information, see the <a href=":doc_url">online documentation for the Language module</a>.', array(':doc_url' => 'https://www.drupal.org/documentation/modules/language', ':content' => (\Drupal::moduleHandler()->moduleExists('content_translation')) ? \Drupal::url('help.page', array('name' => 'content_translation')) : '#', ':interface' => (\Drupal::moduleHandler()->moduleExists('locale')) ? \Drupal::url('help.page', array('name' => 'locale')) : '#', ':configuration' => (\Drupal::moduleHandler()->moduleExists('config_translation')) ? \Drupal::url('help.page', array('name' => 'config_translation')) : '#')) . '</p>';
$output .= '<p>' . t('The Language module allows you to configure the languages used on your site, and provides information for the <a href=":content">Content Translation</a>, <a href=":interface">Interface Translation</a>, and <a href=":configuration">Configuration Translation</a> modules, if they are enabled. For more information, see the <a href=":doc_url">online documentation for the Language module</a>.', array(':doc_url' => 'https://www.drupal.org/documentation/modules/language', ':content' => (\Drupal::moduleHandler()->moduleExists('content_translation')) ? \Drupal::url('help.page', array('name' => 'content_translation')) : '#', ':interface' => (\Drupal::moduleHandler()->moduleExists('locale')) ? \Drupal::url('help.page', array('name' => 'locale')) : '#', ':configuration' => (\Drupal::moduleHandler()->moduleExists('config_translation')) ? \Drupal::url('help.page', array('name' => 'config_translation')) : '#')) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Adding languages') . '</dt>';

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Annotation\LanguageNegotiation.
*/
namespace Drupal\language\Annotation;
use Drupal\Component\Annotation\Plugin;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Config\LanguageConfigCollectionNameTrait.
*/
namespace Drupal\language\Config;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Config\LanguageConfigFactoryOverride.
*/
namespace Drupal\language\Config;
use Drupal\Core\Cache\CacheableMetadata;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Config\LanguageConfigFactoryOverrideInterface.
*/
namespace Drupal\language\Config;
use Drupal\Core\Config\ConfigFactoryOverrideInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Config\LanguageConfigOverride.
*/
namespace Drupal\language\Config;
use Drupal\Core\Cache\Cache;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Config\LanguageConfigOverrideCrudEvent.
*/
namespace Drupal\language\Config;
use Symfony\Component\EventDispatcher\Event;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Config\LanguageConfigOverrideEvents.
*/
namespace Drupal\language\Config;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\ConfigurableLanguageInterface.
*/
namespace Drupal\language;
use Drupal\Core\Config\Entity\ConfigEntityInterface;

View file

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

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\ContentLanguageSettingsException.
*/
namespace Drupal\language;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\ContentLanguageSettingsInterface.
*/
namespace Drupal\language;
use Drupal\Core\Config\Entity\ConfigEntityInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\DefaultLanguageItem.
*/
namespace Drupal\language;
use Drupal\Core\Entity\EntityInterface;

View file

@ -1,16 +1,10 @@
<?php
/**
* @file
* Contains \Drupal\language\Element\LanguageConfiguration.
*/
namespace Drupal\language\Element;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Render\Element\FormElement;
use Drupal\language\Entity\ContentLanguageSettings;
/**
* Provides language element configuration.
@ -41,7 +35,7 @@ class LanguageConfiguration extends FormElement {
// Avoid validation failure since we are moving the '#options' key in the
// nested 'language' select element.
unset($element['#options']);
/** @var ContentLanguageSettings $default_config */
/** @var \Drupal\language\Entity\ContentLanguageSettings $default_config */
$default_config = $element['#default_value'];
$element['langcode'] = array(
'#type' => 'select',

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Entity\ConfigurableLanguage.
*/
namespace Drupal\language\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Entity\ContentLanguageSettings.
*/
namespace Drupal\language\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;
@ -68,7 +63,7 @@ class ContentLanguageSettings extends ConfigEntityBase implements ContentLanguag
* Constructs a ContentLanguageSettings object.
*
* In most cases, Field entities are created via
* entity_create('field_config', $values), where $values is the same
* FieldConfig::create($values), where $values is the same
* parameter as in this constructor.
*
* @param array $values

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\EventSubscriber\ConfigSubscriber.
*/
namespace Drupal\language\EventSubscriber;
use Drupal\Core\Config\ConfigFactoryInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\EventSubscriber\LanguageRequestSubscriber.
*/
namespace Drupal\language\EventSubscriber;
use Drupal\Core\Session\AccountInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Exception\DeleteDefaultLanguageException.
*/
namespace Drupal\language\Exception;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Exception\LanguageException.
*/
namespace Drupal\language\Exception;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\ContentLanguageSettingsForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Entity\ContentEntityTypeInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\LanguageAddForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Entity\EntityInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\LanguageDeleteForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Entity\EntityDeleteForm;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\LanguageEditForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Form\FormStateInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\LanguageFormBase.
*/
namespace Drupal\language\Form;
use Drupal\Component\Utility\Html;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\NegotiationBrowserDeleteForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Form\ConfigFormBaseTrait;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\NegotiationBrowserForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Config\ConfigFactoryInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\NegotiationConfigureForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Block\BlockManagerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\NegotiationSelectedForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Form\FormStateInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\NegotiationSessionForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Form\ConfigFormBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Form\NegotiationUrlForm.
*/
namespace Drupal\language\Form;
use Drupal\Core\Form\ConfigFormBase;
@ -100,7 +95,7 @@ class NegotiationUrlForm extends ConfigFormBase {
'#tree' => TRUE,
'#title' => $this->t('Domain configuration'),
'#open' => TRUE,
'#description' => $this->t('The domain names to use for these languages. <strong>Modifying this value may break existing URLs. Use with caution in a production environment.</strong> Example: Specifying "de.example.com" as language domain for German will result in an URL like "http://de.example.com/contact".'),
'#description' => $this->t('The domain names to use for these languages. <strong>Modifying this value may break existing URLs. Use with caution in a production environment.</strong> Example: Specifying "de.example.com" as language domain for German will result in a URL like "http://de.example.com/contact".'),
'#states' => array(
'visible' => array(
':input[name="language_negotiation_url_part"]' => array(

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\HttpKernel\PathProcessorLanguage.
*/
namespace Drupal\language\HttpKernel;
use Drupal\Component\Utility\Unicode;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\LanguageAccessControlHandler.
*/
namespace Drupal\language;
use Drupal\Core\Access\AccessResult;
@ -26,13 +21,13 @@ class LanguageAccessControlHandler extends EntityAccessControlHandler {
switch ($operation) {
case 'update':
/* @var \Drupal\Core\Language\LanguageInterface $entity */
return AccessResult::allowedIf(!$entity->isLocked())->cacheUntilEntityChanges($entity)
return AccessResult::allowedIf(!$entity->isLocked())->addCacheableDependency($entity)
->andIf(parent::checkAccess($entity, $operation, $account));
case 'delete':
/* @var \Drupal\Core\Language\LanguageInterface $entity */
return AccessResult::allowedIf(!$entity->isLocked())->cacheUntilEntityChanges($entity)
->andIf(AccessResult::allowedIf(!$entity->isDefault())->cacheUntilEntityChanges($entity))
return AccessResult::allowedIf(!$entity->isLocked())->addCacheableDependency($entity)
->andIf(AccessResult::allowedIf(!$entity->isDefault())->addCacheableDependency($entity))
->andIf(parent::checkAccess($entity, $operation, $account));
default:

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\LanguageListBuilder.
*/
namespace Drupal\language;
use Drupal\Core\Config\ConfigFactoryInterface;
@ -14,7 +9,6 @@ use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Render\Element;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\LanguageNegotiationMethodBase.
*/
namespace Drupal\language;
use Drupal\Core\Config\ConfigFactoryInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\LanguageNegotiationMethodInterface.
*/
namespace Drupal\language;
use Drupal\Core\Config\ConfigFactoryInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\LanguageNegotiationMethodManager.
*/
namespace Drupal\language;
use Drupal\Core\Cache\CacheBackendInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\LanguageNegotiator.
*/
namespace Drupal\language;
use Drupal\Component\Plugin\PluginManagerInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\LanguageNegotiatorInterface.
*/
namespace Drupal\language;
use Drupal\Core\Session\AccountInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\LanguageServiceProvider.
*/
namespace Drupal\language;
use Drupal\Core\Config\BootstrapConfigStorageFactory;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Plugin\Block\LanguageBlock.
*/
namespace Drupal\language\Plugin\Block;
use Drupal\Core\Access\AccessResult;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Plugin\Condition\Language.
*/
namespace Drupal\language\Plugin\Condition;
use Drupal\Core\Condition\ConditionPluginBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Plugin\Derivative\LanguageBlock.
*/
namespace Drupal\language\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationBrowser.
*/
namespace Drupal\language\Plugin\LanguageNegotiation;
use Drupal\Component\Utility\UserAgent;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationContentEntity.
*/
namespace Drupal\language\Plugin\LanguageNegotiation;
use Drupal\Component\Utility\UrlHelper;
@ -181,8 +176,8 @@ class LanguageNegotiationContentEntity extends LanguageNegotiationMethodBase imp
* \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationContentEntity::processOutbound().
*
* @return bool
* TRUE if the content entity language negotiator has higher priority than
* the url language negotiator, FALSE otherwise.
* TRUE if the the content entity language negotiator has higher priority
* than the url language negotiator, FALSE otherwise.
*/
protected function hasLowerLanguageNegotiationWeight() {
if (!isset($this->hasLowerLanguageNegotiationWeightResult)) {

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationSelected.
*/
namespace Drupal\language\Plugin\LanguageNegotiation;
use Drupal\language\LanguageNegotiationMethodBase;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUI.
*/
namespace Drupal\language\Plugin\LanguageNegotiation;
use Drupal\language\LanguageNegotiationMethodBase;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrlFallback.
*/
namespace Drupal\language\Plugin\LanguageNegotiation;
use Drupal\language\LanguageNegotiationMethodBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Plugin\migrate\source\Language.
*/
namespace Drupal\language\Plugin\migrate\source;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;

View file

@ -1,9 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\ProxyClass\LanguageConverter.
*/
// @codingStandardsIgnoreFile
/**
* This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\language\LanguageConverter' "core/modules/language/src".

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\AdminPathEntityConverterLanguageTest.
*/
namespace Drupal\language\Tests;
use Drupal\language\Entity\ConfigurableLanguage;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\Condition\LanguageConditionTest.
*/
namespace Drupal\language\Tests\Condition;
use Drupal\language\Entity\ConfigurableLanguage;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\ConfigurableLanguageTest.
*/
namespace Drupal\language\Tests;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\EntityTypeWithoutLanguageFormTest.
*/
namespace Drupal\language\Tests;
use Drupal\simpletest\WebTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\EntityUrlLanguageTest.
*/
namespace Drupal\language\Tests;
use Drupal\Core\Language\LanguageInterface;
@ -41,7 +36,6 @@ class EntityUrlLanguageTest extends LanguageTestBase {
$this->installEntitySchema('entity_test');
$this->installEntitySchema('configurable_language');
$this->installSchema('system', 'router');
\Drupal::service('router.builder')->rebuild();
// In order to reflect the changes for a multilingual site in the container

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageBlockSettingsVisibilityTest.
*/
namespace Drupal\language\Tests;
use Drupal\simpletest\WebTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageBrowserDetectionTest.
*/
namespace Drupal\language\Tests;
use Drupal\simpletest\WebTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageConfigOverrideImportTest.
*/
namespace Drupal\language\Tests;
use Drupal\language\Entity\ConfigurableLanguage;

View file

@ -1,9 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageConfigOverrideInstallTest.
*/
namespace Drupal\language\Tests;
use Drupal\language\Entity\ConfigurableLanguage;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageConfigSchemaTest.
*/
namespace Drupal\language\Tests;
use Drupal\config\Tests\SchemaCheckTestTrait;

View file

@ -1,16 +1,12 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageConfigurationElementTest.
*/
namespace Drupal\language\Tests;
use Drupal\Core\Language\LanguageInterface;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\language\Entity\ContentLanguageSettings;
use Drupal\simpletest\WebTestBase;
use Drupal\taxonomy\Entity\Vocabulary;
/**
* Tests the features of the language configuration element field.
@ -223,10 +219,10 @@ class LanguageConfigurationElementTest extends WebTestBase {
* Tests that the configuration is retained when a vocabulary is updated.
*/
public function testTaxonomyVocabularyUpdate() {
$vocabulary = entity_create('taxonomy_vocabulary', array(
$vocabulary = Vocabulary::create([
'name' => 'Country',
'vid' => 'country',
));
]);
$vocabulary->save();
$admin_user = $this->drupalCreateUser(array('administer taxonomy'));

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageCustomLanguageConfigurationTest.
*/
namespace Drupal\language\Tests;
use Drupal\simpletest\WebTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageDependencyInjectionTest.
*/
namespace Drupal\language\Tests;
use Drupal\language\Entity\ConfigurableLanguage;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageListModuleInstallTest.
*/
namespace Drupal\language\Tests;
use Drupal\simpletest\WebTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageListTest.
*/
namespace Drupal\language\Tests;
use Drupal\language\Entity\ConfigurableLanguage;

View file

@ -1,15 +1,8 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageListTest.
*/
namespace Drupal\language\Tests;
use Drupal\simpletest\WebTestBase;
use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageInterface;
/**
* Adds a new language with translations and tests language list order.

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageNegotiationContentEntityTest.
*/
namespace Drupal\language\Tests;
use Drupal\Component\Render\FormattableMarkup;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguagePathMonolingualTest.
*/
namespace Drupal\language\Tests;
use Drupal\simpletest\WebTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageSelectorTranslatableTest.
*/
namespace Drupal\language\Tests;
use Drupal\simpletest\WebTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageSwitchingTest.
*/
namespace Drupal\language\Tests;
use Drupal\language\Entity\ConfigurableLanguage;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageTestBase.
*/
namespace Drupal\language\Tests;
use Drupal\simpletest\KernelTestBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\LanguageTourTest.
*/
namespace Drupal\language\Tests;
use Drupal\tour\Tests\TourTestBase;

View file

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

View file

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

View file

@ -1,15 +1,10 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\Migrate\MigrateLanguageTest.
*/
namespace Drupal\language\Tests\Migrate;
use Drupal\language\ConfigurableLanguageInterface;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* @group migrate_drupal_6

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\language_elements_test\Form\LanguageConfigurationElement.
*/
namespace Drupal\language_elements_test\Form;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\language_elements_test\Form\LanguageConfigurationElementTest.
*/
namespace Drupal\language_elements_test\Form;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language_test\Controller\LanguageTestController.
*/
namespace Drupal\language_test\Controller;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language_test\Entity\NoLanguageEntityTest.
*/
namespace Drupal\language_test\Entity;
use Drupal\Core\Entity\ContentEntityBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTest.
*/
namespace Drupal\language_test\Plugin\LanguageNegotiation;
use Drupal\language\LanguageNegotiationMethodBase;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTestTs.
*/
namespace Drupal\language_test\Plugin\LanguageNegotiation;
/**

View file

@ -1,13 +1,8 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\Migrate\d7\MigrateLanguageNegotiationSettingsTest.
*/
namespace Drupal\Tests\language\Kernel\Migrate\d7;
namespace Drupal\language\Tests\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of language negotiation variables.

View file

@ -1,11 +1,6 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\Views\ArgumentLanguageTest.
*/
namespace Drupal\language\Tests\Views;
namespace Drupal\Tests\language\Kernel\Views;
use Drupal\views\Views;

View file

@ -1,11 +1,6 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\Views\FieldLanguageTest.
*/
namespace Drupal\language\Tests\Views;
namespace Drupal\Tests\language\Kernel\Views;
use Drupal\views\Views;

View file

@ -1,11 +1,6 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\Views\FilterLanguageTest.
*/
namespace Drupal\language\Tests\Views;
namespace Drupal\Tests\language\Kernel\Views;
use Drupal\views\Views;

View file

@ -1,19 +1,14 @@
<?php
/**
* @file
* Contains \Drupal\language\Tests\Views\LanguageTestBase.
*/
namespace Drupal\language\Tests\Views;
namespace Drupal\Tests\language\Kernel\Views;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\Tests\views\Kernel\ViewsKernelTestBase;
/**
* Defines the base class for all Language handler tests.
*/
abstract class LanguageTestBase extends ViewKernelTestBase {
abstract class LanguageTestBase extends ViewsKernelTestBase {
/**
* Modules to enable.
@ -22,7 +17,7 @@ abstract class LanguageTestBase extends ViewKernelTestBase {
*/
public static $modules = array('system', 'language');
protected function setUp() {
protected function setUp($import_test_views = TRUE) {
parent::setUp();
$this->installConfig(array('language'));

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Tests\language\Unit\Config\LanguageConfigOverrideTest.
*/
namespace Drupal\Tests\language\Unit\Config;
use Drupal\Core\DependencyInjection\ContainerBuilder;

View file

@ -1,8 +1,4 @@
<?php
/**
* @file
* Contains \Drupal\Tests\language\Unit\ConfigurableLanguageUnitTest.
*/
namespace Drupal\Tests\language\Unit;

View file

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

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Tests\language\Unit\LanguageNegotiationUrlTest.
*/
namespace Drupal\Tests\language\Unit {
use Drupal\Core\Cache\Cache;

View file

@ -1,10 +1,5 @@
<?php
/**
* @file
* Contains \Drupal\Tests\language\Unit\Menu\LanguageLocalTasksTest.
*/
namespace Drupal\Tests\language\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;

Some files were not shown because too many files have changed in this diff Show more