Skip to content

Commit

Permalink
Merge pull request #218 from jmolivas/config-entity-delete
Browse files Browse the repository at this point in the history
Rename method form to formSubmit
  • Loading branch information
jmolivas committed Oct 11, 2014
2 parents 19a9c30 + 7b71ffb commit 8174f2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class {{ entity_class }}DeleteForm extends EntityConfirmFormBase
/**
* {@inheritdoc}
*/
public function submit(array $form, FormStateInterface $form_state) {
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->entity->delete();
drupal_set_message($this->t('Category %label has been deleted.', array('%label' => $this->entity->label())));
$form_state->setRedirectUrl($this->getCancelUrl());
Expand Down

0 comments on commit 8174f2e

Please sign in to comment.