Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -67,22 +67,6 @@ class CommentForm extends ContentEntityForm {
|
|||
$this->renderer = $renderer;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function init(FormStateInterface $form_state) {
|
||||
$comment = $this->entity;
|
||||
|
||||
// Make the comment inherit the current content language unless specifically
|
||||
// set.
|
||||
if ($comment->isNew()) {
|
||||
$language_content = \Drupal::languageManager()->getCurrentLanguage(LanguageInterface::TYPE_CONTENT);
|
||||
$comment->langcode->value = $language_content->getId();
|
||||
}
|
||||
|
||||
parent::init($form_state);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides Drupal\Core\Entity\EntityForm::form().
|
||||
*/
|
||||
|
@ -258,7 +242,6 @@ class CommentForm extends ContentEntityForm {
|
|||
'#type' => 'submit',
|
||||
'#value' => $this->t('Preview'),
|
||||
'#access' => $preview_mode != DRUPAL_DISABLED,
|
||||
'#validate' => array('::validate'),
|
||||
'#submit' => array('::submitForm', '::preview'),
|
||||
);
|
||||
|
||||
|
|
Reference in a new issue