예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function buildForm(array $form, array &$form_state, $entity_type_id = NULL, $bundle = NULL)
 {
     if ($this->getRequest()->attributes->has('view_mode_name')) {
         $this->mode = $this->getRequest()->attributes->get('view_mode_name');
     }
     return parent::buildForm($form, $form_state, $entity_type_id, $bundle);
 }
 /**
  * {@inheritdoc}
  */
 public function buildForm(array $form, FormStateInterface $form_state, $entity_type_id = NULL, $bundle = NULL, $form_mode_name = 'default')
 {
     return parent::buildForm($form, $form_state, $entity_type_id, $bundle, $form_mode_name);
 }