function ContentEntityForm::submitForm

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::submitForm()
  2. 8.9.x core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::submitForm()
  3. 10 core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::submitForm()

Overrides EntityForm::submitForm

2 calls to ContentEntityForm::submitForm()
AccountForm::submitForm in core/modules/user/src/AccountForm.php
TestNodeFormOverride::submitForm in core/modules/media_library/tests/modules/media_library_test/src/Form/TestNodeFormOverride.php
3 methods override ContentEntityForm::submitForm()
AccountForm::submitForm in core/modules/user/src/AccountForm.php
TestNodeFormOverride::submitForm in core/modules/media_library/tests/modules/media_library_test/src/Form/TestNodeFormOverride.php
UserCancelForm::submitForm in core/modules/user/src/Form/UserCancelForm.php

File

core/lib/Drupal/Core/Entity/ContentEntityForm.php, line 144

Class

ContentEntityForm
Entity form variant for content entity types.

Namespace

Drupal\Core\Entity

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    parent::submitForm($form, $form_state);
    // Update the changed timestamp of the entity.
    $this->updateChangedTime($this->entity);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.