function EntityForm::save

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::save()
  2. 9 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::save()
  3. 8.9.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::save()
2 calls to EntityForm::save()
PathAliasForm::save in core/modules/path/src/PathAliasForm.php
PathAliasForm::save in core/modules/path/src/PathAliasForm.php
46 methods override EntityForm::save()
ActionFormBase::save in core/modules/action/src/Form/ActionFormBase.php
BlockContentForm::save in core/modules/block_content/src/BlockContentForm.php
BlockContentTypeForm::save in core/modules/block_content/src/BlockContentTypeForm.php
BlockForm::save in core/modules/block/src/BlockForm.php
BookOutlineForm::save in core/modules/book/src/Form/BookOutlineForm.php

... See full list

File

core/lib/Drupal/Core/Entity/EntityForm.php, line 292

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

public function save(array $form, FormStateInterface $form_state) {
  return $this->entity
    ->save();
}

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