Skip to content
Snippets Groups Projects

#3339841 Committing changes.

Open Nitin Lama requested to merge issue/all_entity_preview-3339841:1.0.x into 1.0.x
Files
3
+ 1
11
@@ -60,17 +60,7 @@ class PreviewForm extends FormBase {
}
/**
* Form constructor.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity being previewed.
*
* @return array
* The form structure.
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state, EntityInterface $entity = NULL) {
$view_mode = $entity->preview_view_mode;
Loading