diff --git a/core/modules/block_content/src/BlockContentForm.php b/core/modules/block_content/src/BlockContentForm.php index 779cdb9..0197f9f 100644 --- a/core/modules/block_content/src/BlockContentForm.php +++ b/core/modules/block_content/src/BlockContentForm.php @@ -104,24 +104,12 @@ public function form(array $form, FormStateInterface $form_state) { // names. $form['#attributes']['class'][0] = drupal_html_class('block-' . $block->bundle() . '-form'); - $is_language_alterable = FALSE; - if ($this->moduleHandler->moduleExists('language')) { - $language_configuration = ContentLanguageSettings::loadByEntityTypeBundle('block_content', $block->bundle()); - - // Set the correct default language. - if ($block->isNew()) { - $language_default = $this->languageManager->getCurrentLanguage($language_configuration->getDefaultLangcode()); - $block->langcode->value = $language_default->getId(); - } - $is_language_alterable = $language_configuration->isLanguageAlterable(); - } - $form['langcode'] = array( '#title' => $this->t('Language'), '#type' => 'language_select', '#default_value' => $block->getUntranslated()->language()->getId(), '#languages' => LanguageInterface::STATE_ALL, - '#access' => $is_language_alterable, + '#access' => FALSE, ); $form['advanced'] = array(