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:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -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().
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -211,4 +211,5 @@ class NegotiationBrowserForm extends ConfigFormBase {
|
|||
}
|
||||
return $config->get('map');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -100,4 +100,5 @@ class LanguageServiceProvider extends ServiceProviderBase {
|
|||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -19,7 +19,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||
* "language" = @ContextDefinition("language", label = @Translation("Language"))
|
||||
* }
|
||||
* )
|
||||
*
|
||||
*/
|
||||
class Language extends ConditionPluginBase implements ContainerFactoryPluginInterface {
|
||||
|
||||
|
|
|
@ -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.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -97,4 +97,5 @@ class LanguageCustomLanguageConfigurationTest extends WebTestBase {
|
|||
));
|
||||
$this->assertUrl(\Drupal::url('language.add', array(), array('absolute' => TRUE)), [], 'Correct page redirection.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -37,4 +37,5 @@ class LanguageListModuleInstallTest extends WebTestBase {
|
|||
$this->rebuildContainer();
|
||||
$this->assertTrue(\Drupal::moduleHandler()->moduleExists('language'), 'Language module is enabled');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -69,4 +69,5 @@ class LanguageLocaleListTest extends WebTestBase {
|
|||
// Check the language list displayed is ordered.
|
||||
$this->assertTrue($options === $options_ordered, 'Language list is ordered.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -532,4 +532,5 @@ class LanguageUILanguageNegotiationTest extends WebTestBase {
|
|||
$block = Block::load($block_id);
|
||||
$this->assertFalse($block, 'Language switcher block was removed.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -46,4 +46,5 @@ class LanguageConfigurationElement extends FormBase {
|
|||
*/
|
||||
public function submitForm(array &$form, FormStateInterface $form_state) {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -34,4 +34,5 @@ class LanguageConfigurationElementTest extends FormBase {
|
|||
*/
|
||||
public function submitForm(array &$form, FormStateInterface $form_state) {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -249,6 +249,7 @@ class LanguageNegotiationUrlTest extends UnitTestCase {
|
|||
);
|
||||
return $domain_configuration;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue