/**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     $triggering_element = $form_state->getTriggeringElement();
     // Return early if there are any errors or if a button we're not aware of
     // submitted the form.
     if ($form_state->hasAnyErrors() || $triggering_element['#name'] !== 'panels_ipe_submit') {
         return $form;
     }
     // Submit the parent form and save. This mimics the normal behavior of the
     // submit element in our parent form(s).
     parent::submitForm($form, $form_state);
     parent::save($form, $form_state);
     // Inform the App that we've created a new Block Content entity.
     $form['#attached']['drupalSettings']['panels_ipe']['new_block_content'] = $this->entity->uuid();
     return $form;
 }
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     // Return early if there are any errors.
     if ($form_state->hasAnyErrors()) {
         return $form;
     }
     // Submit the parent form and save. This mimics the normal behavior of the
     // submit element in our parent form(s).
     parent::submitForm($form, $form_state);
     parent::save($form, $form_state);
     // Inform the App that we've created a new Block Content entity.
     $form['#attached']['drupalSettings']['panels_ipe']['new_block_content'] = $this->entity->uuid();
     return $form;
 }