Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2

This commit is contained in:
Pantheon Automation 2016-06-02 15:56:09 -07:00 committed by Greg Anderson
parent 9eae24d844
commit 28556d630e
1322 changed files with 6699 additions and 2064 deletions

View file

@ -168,7 +168,7 @@ function language_entity_base_field_info_alter(&$fields) {
foreach ($fields as $definition) {
// Set configurable form display for language fields with display options.
if ($definition->getType() == 'language') {
foreach (array('form', 'view') as $type) {
foreach (array('form', 'view') as $type) {
if ($definition->getDisplayOptions($type)) {
// The related configurations will be purged manually on Language
// module uninstallation. @see language_modules_uninstalled().

View file

@ -387,7 +387,7 @@ class ConfigurableLanguageManager extends LanguageManager implements Configurabl
$type = 'language_fallback_candidates';
$types = array();
if (!empty($context['operation'])) {
$types[] = $type . '_' . $context['operation'];
$types[] = $type . '_' . $context['operation'];
}
$types[] = $type;
$this->moduleHandler->alter($types, $candidates, $context);

View file

@ -39,7 +39,7 @@ interface ContentLanguageSettingsInterface extends ConfigEntityInterface {
* @param string $default_langcode
* The default language code.
*
* @return $this;
* @return $this
*/
public function setDefaultLangcode($default_langcode);

View file

@ -211,4 +211,5 @@ class NegotiationBrowserForm extends ConfigFormBase {
}
return $config->get('map');
}
}

View file

@ -100,4 +100,5 @@ class LanguageServiceProvider extends ServiceProviderBase {
}
return FALSE;
}
}

View file

@ -19,7 +19,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* "language" = @ContextDefinition("language", label = @Translation("Language"))
* }
* )
*
*/
class Language extends ConditionPluginBase implements ContainerFactoryPluginInterface {

View file

@ -23,4 +23,5 @@ class LanguageBlockSettingsVisibilityTest extends WebTestBase {
$this->assertFieldByXPath('//input[@id="edit-visibility-language-langcodes-en"]', NULL, '\'English\' option appears at block config, language settings section.');
$this->assertFieldByXpath('//input[@id="edit-visibility-language-langcodes-hu"]', NULL, '\'Hungarian\' option appears at block config, language settings section.');
}
}

View file

@ -86,4 +86,5 @@ class LanguageBrowserDetectionTest extends WebTestBase {
$this->assertField('edit-mappings-xx-browser-langcode', 'xx', 'Browser language code found.');
$this->assertField('edit-mappings-xx-drupal-langcode', 'zh-hans', 'Drupal language code found.');
}
}

View file

@ -97,4 +97,5 @@ class LanguageCustomLanguageConfigurationTest extends WebTestBase {
));
$this->assertUrl(\Drupal::url('language.add', array(), array('absolute' => TRUE)), [], 'Correct page redirection.');
}
}

View file

@ -37,4 +37,5 @@ class LanguageListModuleInstallTest extends WebTestBase {
$this->rebuildContainer();
$this->assertTrue(\Drupal::moduleHandler()->moduleExists('language'), 'Language module is enabled');
}
}

View file

@ -61,7 +61,7 @@ class LanguageListTest extends WebTestBase {
);
$this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add custom language'));
$this->assertUrl(\Drupal::url('entity.configurable_language.collection', [], ['absolute' => TRUE]));
$this->assertRaw('"edit-languages-' . $langcode .'-weight"', 'Language code found.');
$this->assertRaw('"edit-languages-' . $langcode . '-weight"', 'Language code found.');
$this->assertText(t($name), 'Test language added.');
$language = \Drupal::service('language_manager')->getLanguage($langcode);
@ -205,4 +205,5 @@ class LanguageListTest extends WebTestBase {
$conf_languages = $this->container->get('language_manager')->getLanguages();
$this->assertEqual(array_diff_key($expected_conf_languages, $conf_languages), array(), 'Configurable languages loaded correctly.');
}
}

View file

@ -69,4 +69,5 @@ class LanguageLocaleListTest extends WebTestBase {
// Check the language list displayed is ordered.
$this->assertTrue($options === $options_ordered, 'Language list is ordered.');
}
}

View file

@ -86,7 +86,7 @@ class LanguageNegotiationInfoTest extends WebTestBase {
$test_type = 'test_language_type';
$interface_method_id = LanguageNegotiationUI::METHOD_ID;
$test_method_id = 'test_language_negotiation_method';
$form_field = $type . '[enabled]['. $interface_method_id .']';
$form_field = $type . '[enabled][' . $interface_method_id . ']';
$edit = array(
$form_field => TRUE,
$type . '[enabled][' . $test_method_id . ']' => TRUE,

View file

@ -69,4 +69,5 @@ class LanguagePathMonolingualTest extends WebTestBase {
$this->assertResponse(200, 'Clicked link results in a valid page');
$this->assertText(t('Add language'), 'Page contains the add language text');
}
}

View file

@ -532,4 +532,5 @@ class LanguageUILanguageNegotiationTest extends WebTestBase {
$block = Block::load($block_id);
$this->assertFalse($block, 'Language switcher block was removed.');
}
}

View file

@ -46,4 +46,5 @@ class LanguageConfigurationElement extends FormBase {
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
}
}

View file

@ -34,4 +34,5 @@ class LanguageConfigurationElementTest extends FormBase {
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
}
}

View file

@ -249,6 +249,7 @@ class LanguageNegotiationUrlTest extends UnitTestCase {
);
return $domain_configuration;
}
}
}